Last active
December 10, 2015 02:19
-
-
Save sirramongabriel/4366840 to your computer and use it in GitHub Desktop.
A list of code snippets for my 324 SO question asked on 12-23-12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# controllers/assessment_plan_form_controller.rb | |
class AssessmentPlanFormsController < ApplicationController | |
before_filter :get_resident | |
def index | |
@assessment_plan_forms = @resident.assessment_plan_forms | |
end | |
def new | |
@resident = Resident.find(params[:resident_id]) | |
@assessment_plan_form = @resident.assessment_plan_forms.build | |
end | |
def create | |
@assessment_plan_form = @resident.assessment_plan_forms.build(params[:assessment_plan_form]) | |
if @assessment_plan_form.save | |
redirect_to 'show', success: "Form was created!" | |
else | |
render 'new', flash[:error] = "There was a problem with the form" | |
end | |
end | |
def show | |
@resident = Resident.find(params[:id]) | |
@assessment_plan_form = @resident.assessment_plan_forms.build | |
end | |
def update | |
@assessment_plan_form = @resident.assessment_plan_forms.find(params[:id]) | |
if @assessment_plan_form.update_attributes(params[:assessment_plan_form]) | |
flash[:success] = "Form updated!" | |
redirect_to controller: 'residents', action: 'show', id: params[:id] | |
else | |
render 'edit', flash[:error] = "Unable to update form" | |
end | |
end | |
def edit | |
@assessment_plan_form = @resident.assessment_plan_forms.find(params[:id]) | |
end | |
def destroy | |
@assessment_plan_form = @resident.assessment_plan_forms.find(params[:id]) | |
@assessment_plan_form.destroy | |
flash[:notice] = "You sure?" | |
redirect_to resident_assessment_plan_forms_path | |
end | |
private | |
# get_resident converts the resident_id given by the routing | |
# into an @resident object, for use in this controller & coresponding views | |
def get_resident | |
@resident = Resident.find(params[:resident_id]) | |
end | |
end | |
-------------------------------------------------------------------------------------- | |
# models/assessment_plan_form.rb | |
class AssessmentPlanForm < ActiveRecord::Base | |
attr_accessible :moves_independent, :moves_independent_desc, :can_speak, :can_speak_desc, :can_hear, | |
:can_hear_desc, :is_alert, :is_alert_desc, :can_read_write, :can_read_write_desc, :tells_time, :tells_time_desc, | |
:manages_money, :manages_money_desc, :follows_dir, :follows_dir_desc, :ctrl_behavior, :ctrl_behavior_desc, | |
:ctrl_sex_behavior, :ctrl_sex_behavior_desc, :get_along_others, :get_along_others_desc, :self_harmer, :self_harmer_desc, | |
:social_acts, :social_acts_desc, :smokes, :smokes_desc, :alc_drug_abuse, :alc_drug_abuse_desc, :eat_feed, :eat_feed_desc, | |
:toileting, :toileting_desc, :bathing, :bathing_desc, :grooming, :grooming_desc, :self_dress, :self_dress_desc, | |
:pers_hygiene, :pers_hygiene_desc, :walk_mobility, :walk_mobility_desc, :stair_climb, :stair_climb_desc, :pros_use, | |
:pros_use_desc, :ass_devices, :ass_devices_desc, :num_two_other, :num_two_other_desc, :takes_meds, :takes_meds_desc, | |
:spec_diet, :spec_diet_desc, :phys_limit, :phys_limit_desc, :spec_equip, :spec_equip_desc, :other_diff, :other_diff_desc, | |
:hypo, :hypo_desc, :religious, :religious_desc, :chores, :chores_desc, :activity_prog, :activity_prog_desc, :senior_center, | |
:senior_center_desc, :job, :job_desc, :school, :school_desc, :hobbies, :hobbies_desc, :rec, :rec_desc, :exercise, | |
:exercise_desc, :fam_friend, :fam_friend_desc, :num_four_other, :num_four_other_desc, :med1, :med1_dose, :med1_doc_full_name, | |
:med2, :med2_dose, :med2_doc_full_name, :med3, :med3_dose, :med3_doc_full_name, :med4, :med4_dose, :med4_doc_full_name, | |
:med5,:med5_dose, :med5_doc_full_name, :med6, :med6_dose, :med6_doc_full_name, :med7, :med7_dose, :med7_doc_full_name, | |
:med8, :med8_dose, :med8_doc_full_name, :med9, :med9_dose, :med9_doc_full_name, :med10, :med10_dose, :med10_doc_full_name, | |
:med11, :med11_dose, :med11_doc_full_name, :med12, :med12_dose, :med12_doc_full_name, :med13, :med13_dose, :med13_doc_full_name, | |
:med14, :med14_dose, :med14_doc_full_name, :med15, :med15_dose, :med15_doc_full_name, :guard_sig, :guard_sig_date, | |
:other_comments, :submit_date, :admin_pos, :restrict_movement, :res_sig, :res_sig_date, :resp_agency_sig, | |
:resp_agency_sig_date, :lic_sig, :lic_sig_date | |
belongs_to :resident | |
end | |
---------------------------------------------------------------------------------- | |
# views/assessment_plan_forms (snippet only) | |
<h1>Assessment Plan Form</h1> | |
</div> | |
<%= form_for([@resident, @assessment_plan_form], html: { class: "form-horizontal" }) do |f| %> | |
<%= link_to 'back', :back %> | |
</div> | |
--------------------------------------------------------------------------------- | |
# models/resident.rb | |
class Resident < ActiveRecord::Base | |
attr_accessible :address, :city, :desrep_address, :desrep_city, :desrep_email, :desrep_fname, | |
:desrep_lname, :desrep_phone, :desrep_state, :desrep_zip, :doc_address, :doc_city, :doc_email, :doc_fax, | |
:doc_fname, :doc_lname, :doc_phone1, :doc_phone2, :doc_state, :doc_zip, :fname, :gender, :guard_address, | |
:guard_city, :guard_email, :guard_fname, :guard_lname, :guard_phone, :guard_state, :guard_zip, :lname, | |
:pic, :soc, :state, :zip, :dob | |
has_many :assessment_plan_forms, dependent: :destroy | |
has_many :blood_pressure_record_forms, dependent: :destroy | |
has_many :fund_record_form1s, dependent: :destroy | |
has_many :fund_record_form2s, dependent: :destroy | |
has_many :id_record_forms, dependent: :destroy | |
has_many :incident_accident_forms, dependent: :destroy | |
has_many :med_record_forms, dependent: :destroy | |
has_many :personal_care_forms, dependent: :destroy | |
has_many :resident_care_agreement_forms, dependent: :destroy | |
has_many :visitation_appointment_forms, dependent: :destroy | |
has_many :weight_record_forms, dependent: :destroy | |
def full_name | |
([fname, lname] - [ '' ]).compact.join(' ') | |
end | |
end | |
------------------------------------------------------------------------------- | |
# config/routes.rb | |
root / static_pages#home | |
about /static_pages/about(.:format) static_pages#about | |
pricing /static_pages/pricing(.:format) static_pages#pricing | |
contact /static_pages/contact(.:format) static_pages#contact | |
new_user_session GET /users/sign_in(.:format) devise/sessions#new | |
POST /users/sign_in(.:format) devise/sessions#create | |
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy | |
POST /users/password(.:format) devise/passwords#create | |
GET /users/password/new(.:format) devise/passwords#new | |
GET /users/password/edit(.:format) devise/passwords#edit | |
PUT /users/password(.:format) devise/passwords#update | |
GET /users/cancel(.:format) devise/registrations#cancel | |
POST /users(.:format) devise/registrations#create | |
GET /users/sign_up(.:format) devise/registrations#new | |
GET /users/edit(.:format) devise/registrations#edit | |
PUT /users(.:format) devise/registrations#update | |
DELETE /users(.:format) devise/registrations#destroy | |
resident_assessment_plan_forms GET /residents/:resident_id/assessment_plan_forms(.:format) assessment_plan_forms#index | |
POST /residents/:resident_id/assessment_plan_forms(.:format) assessment_plan_forms#create | |
new_resident_assessment_plan_form GET /residents/:resident_id/assessment_plan_forms/new(.:format) assessment_plan_forms#new | |
edit_resident_assessment_plan_form GET /residents/:resident_id/assessment_plan_forms/:id/edit(.:format) assessment_plan_forms#edit | |
resident_assessment_plan_form GET /residents/:resident_id/assessment_plan_forms/:id(.:format) assessment_plan_forms#show | |
PUT /residents/:resident_id/assessment_plan_forms/:id(.:format) assessment_plan_forms#update | |
DELETE /residents/:resident_id/assessment_plan_forms/:id(.:format) assessment_plan_forms#destroy | |
resident_blood_pressure_record_forms GET /residents/:resident_id/blood_pressure_record_forms(.:format) blood_pressure_record_forms#index | |
POST /residents/:resident_id/blood_pressure_record_forms(.:format) blood_pressure_record_forms#create | |
new_resident_blood_pressure_record_form GET /residents/:resident_id/blood_pressure_record_forms/new(.:format) blood_pressure_record_forms#new | |
edit_resident_blood_pressure_record_form GET /residents/:resident_id/blood_pressure_record_forms/:id/edit(.:format) blood_pressure_record_forms#edit | |
resident_blood_pressure_record_form GET /residents/:resident_id/blood_pressure_record_forms/:id(.:format) blood_pressure_record_forms#show | |
PUT /residents/:resident_id/blood_pressure_record_forms/:id(.:format) blood_pressure_record_forms#update | |
DELETE /residents/:resident_id/blood_pressure_record_forms/:id(.:format) blood_pressure_record_forms#destroy | |
resident_fund_record_form1s GET /residents/:resident_id/fund_record_form1s(.:format) fund_record_form1s#index | |
POST /residents/:resident_id/fund_record_form1s(.:format) fund_record_form1s#create | |
new_resident_fund_record_form1 GET /residents/:resident_id/fund_record_form1s/new(.:format) fund_record_form1s#new | |
edit_resident_fund_record_form1 GET /residents/:resident_id/fund_record_form1s/:id/edit(.:format) fund_record_form1s#edit | |
resident_fund_record_form1 GET /residents/:resident_id/fund_record_form1s/:id(.:format) fund_record_form1s#show | |
PUT /residents/:resident_id/fund_record_form1s/:id(.:format) fund_record_form1s#update | |
DELETE /residents/:resident_id/fund_record_form1s/:id(.:format) fund_record_form1s#destroy | |
resident_fund_record_form2s GET /residents/:resident_id/fund_record_form2s(.:format) fund_record_form2s#index | |
POST /residents/:resident_id/fund_record_form2s(.:format) fund_record_form2s#create | |
new_resident_fund_record_form2 GET /residents/:resident_id/fund_record_form2s/new(.:format) fund_record_form2s#new | |
edit_resident_fund_record_form2 GET /residents/:resident_id/fund_record_form2s/:id/edit(.:format) fund_record_form2s#edit | |
resident_fund_record_form2 GET /residents/:resident_id/fund_record_form2s/:id(.:format) fund_record_form2s#show | |
PUT /residents/:resident_id/fund_record_form2s/:id(.:format) fund_record_form2s#update | |
DELETE /residents/:resident_id/fund_record_form2s/:id(.:format) fund_record_form2s#destroy | |
resident_id_record_forms GET /residents/:resident_id/id_record_forms(.:format) id_record_forms#index | |
POST /residents/:resident_id/id_record_forms(.:format) id_record_forms#create | |
new_resident_id_record_form GET /residents/:resident_id/id_record_forms/new(.:format) id_record_forms#new | |
edit_resident_id_record_form GET /residents/:resident_id/id_record_forms/:id/edit(.:format) id_record_forms#edit | |
resident_id_record_form GET /residents/:resident_id/id_record_forms/:id(.:format) id_record_forms#show | |
PUT /residents/:resident_id/id_record_forms/:id(.:format) id_record_forms#update | |
DELETE /residents/:resident_id/id_record_forms/:id(.:format) id_record_forms#destroy | |
resident_incident_accident_forms GET /residents/:resident_id/incident_accident_forms(.:format) incident_accident_forms#index | |
POST /residents/:resident_id/incident_accident_forms(.:format) incident_accident_forms#create | |
new_resident_incident_accident_form GET /residents/:resident_id/incident_accident_forms/new(.:format) incident_accident_forms#new | |
edit_resident_incident_accident_form GET /residents/:resident_id/incident_accident_forms/:id/edit(.:format) incident_accident_forms#edit | |
resident_incident_accident_form GET /residents/:resident_id/incident_accident_forms/:id(.:format) incident_accident_forms#show | |
PUT /residents/:resident_id/incident_accident_forms/:id(.:format) incident_accident_forms#update | |
DELETE /residents/:resident_id/incident_accident_forms/:id(.:format) incident_accident_forms#destroy | |
resident_med_record_forms GET /residents/:resident_id/med_record_forms(.:format) med_record_forms#index | |
POST /residents/:resident_id/med_record_forms(.:format) med_record_forms#create | |
new_resident_med_record_form GET /residents/:resident_id/med_record_forms/new(.:format) med_record_forms#new | |
edit_resident_med_record_form GET /residents/:resident_id/med_record_forms/:id/edit(.:format) med_record_forms#edit | |
resident_med_record_form GET /residents/:resident_id/med_record_forms/:id(.:format) med_record_forms#show | |
PUT /residents/:resident_id/med_record_forms/:id(.:format) med_record_forms#update | |
DELETE /residents/:resident_id/med_record_forms/:id(.:format) med_record_forms#destroy | |
resident_personal_care_forms GET /residents/:resident_id/personal_care_forms(.:format) personal_care_forms#index | |
POST /residents/:resident_id/personal_care_forms(.:format) personal_care_forms#create | |
new_resident_personal_care_form GET /residents/:resident_id/personal_care_forms/new(.:format) personal_care_forms#new | |
edit_resident_personal_care_form GET /residents/:resident_id/personal_care_forms/:id/edit(.:format) personal_care_forms#edit | |
resident_personal_care_form GET /residents/:resident_id/personal_care_forms/:id(.:format) personal_care_forms#show | |
PUT /residents/:resident_id/personal_care_forms/:id(.:format) personal_care_forms#update | |
DELETE /residents/:resident_id/personal_care_forms/:id(.:format) personal_care_forms#destroy | |
resident_resident_care_agreement_forms GET /residents/:resident_id/resident_care_agreement_forms(.:format) resident_care_agreement_forms#index | |
POST /residents/:resident_id/resident_care_agreement_forms(.:format) resident_care_agreement_forms#create | |
new_resident_resident_care_agreement_form GET /residents/:resident_id/resident_care_agreement_forms/new(.:format) resident_care_agreement_forms#new | |
edit_resident_resident_care_agreement_form GET /residents/:resident_id/resident_care_agreement_forms/:id/edit(.:format) resident_care_agreement_forms#edit | |
resident_resident_care_agreement_form GET /residents/:resident_id/resident_care_agreement_forms/:id(.:format) resident_care_agreement_forms#show | |
PUT /residents/:resident_id/resident_care_agreement_forms/:id(.:format) resident_care_agreement_forms#update | |
DELETE /residents/:resident_id/resident_care_agreement_forms/:id(.:format) resident_care_agreement_forms#destroy | |
resident_visitation_appointment_forms GET /residents/:resident_id/visitation_appointment_forms(.:format) visitation_appointment_forms#index | |
POST /residents/:resident_id/visitation_appointment_forms(.:format) visitation_appointment_forms#create | |
new_resident_visitation_appointment_form GET /residents/:resident_id/visitation_appointment_forms/new(.:format) visitation_appointment_forms#new | |
edit_resident_visitation_appointment_form GET /residents/:resident_id/visitation_appointment_forms/:id/edit(.:format) visitation_appointment_forms#edit | |
resident_visitation_appointment_form GET /residents/:resident_id/visitation_appointment_forms/:id(.:format) visitation_appointment_forms#show | |
PUT /residents/:resident_id/visitation_appointment_forms/:id(.:format) visitation_appointment_forms#update | |
DELETE /residents/:resident_id/visitation_appointment_forms/:id(.:format) visitation_appointment_forms#destroy | |
resident_weight_record_forms GET /residents/:resident_id/weight_record_forms(.:format) weight_record_forms#index | |
POST /residents/:resident_id/weight_record_forms(.:format) weight_record_forms#create | |
new_resident_weight_record_form GET /residents/:resident_id/weight_record_forms/new(.:format) weight_record_forms#new | |
edit_resident_weight_record_form GET /residents/:resident_id/weight_record_forms/:id/edit(.:format) weight_record_forms#edit | |
resident_weight_record_form GET /residents/:resident_id/weight_record_forms/:id(.:format) weight_record_forms#show | |
PUT /residents/:resident_id/weight_record_forms/:id(.:format) weight_record_forms#update | |
DELETE /residents/:resident_id/weight_record_forms/:id(.:format) weight_record_forms#destroy | |
residents GET /residents(.:format) residents#index | |
POST /residents(.:format) residents#create | |
new_resident GET /residents/new(.:format) residents#new | |
edit_resident GET /residents/:id/edit(.:format) residents#edit | |
resident GET /residents/:id(.:format) residents#show | |
PUT /residents/:id(.:format) residents#update | |
DELETE /residents/:id(.:format) residents#destroy | |
------------------------------------------------------------------------------------ | |
# local server | |
Started POST "/residents/1//assessment_plan_forms" for 127.0.0.1 at 2012-12-23 18:28:24 -0500 | |
Processing by AssessmentPlanFormsController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", "assessment_plan_form"=>{"moves_independent_desc"=>"", "can_speak_desc"=>"", "can_hear_desc"=>"", "is_alert_desc"=>"", "can_read_write_desc"=>"", "tells_time_desc"=>"", "manages_money_desc"=>"", "follows_dir_desc"=>"", "ctrl_sex_behavior_desc"=>"", "get_along_others_desc"=>"", "self_harmer_desc"=>"", "social_acts_desc"=>"", "smokes_desc"=>"", "alc_drug_abuse_desc"=>"", "eat_feed_desc"=>"", "toileting_desc"=>"", "bathing_desc"=>"", "grooming_desc"=>"", "self_dress_desc"=>"", "pers_hygiene_desc"=>"", "walk_mobility_desc"=>"", "stair_climb_desc"=>"", "pros_use_desc"=>"", "ass_devices_desc"=>"", "num_two_other_desc"=>"", "takes_meds_desc"=>"", "spec_diet_desc"=>"", "phys_limit_desc"=>"", "spec_equip_desc"=>"", "other_diff_desc"=>"", "hypo_desc"=>"", "religious_desc"=>"", "chores_desc"=>"", "activity_prog_desc"=>"", "senior_center_desc"=>"", "job_desc"=>"", "school_desc"=>"", "hobbies_desc"=>"", "rec_desc"=>"", "exercise_desc"=>"", "fam_friend_desc"=>"", "num_four_other_desc"=>"", "med1"=>"", "med1_doc_full_name"=>"", "med1_dose"=>"", "med2"=>"", "med2_doc_full_name"=>"", "med2_dose"=>"", "med3"=>"", "med3_doc_full_name"=>"", "med3_dose"=>"", "med4"=>"", "med4_doc_full_name"=>"", "med4_dose"=>"", "med5"=>"", "med5_doc_full_name"=>"", "med5_dose"=>"", "med6"=>"", "med6_doc_full_name"=>"", "med6_dose"=>"", "med7"=>"", "med7_doc_full_name"=>"", "med7_dose"=>"", "med8"=>"", "med8_doc_full_name"=>"", "med8_dose"=>"", "med9"=>"", "med9_doc_full_name"=>"", "med9_dose"=>"", "med10"=>"", "med10_doc_full_name"=>"", "med10_dose"=>"", "other_comments"=>"", "submit_date(2i)"=>"", "submit_date(3i)"=>"", "submit_date(1i)"=>"", "res_sig_date(2i)"=>"", "res_sig_date(3i)"=>"", "res_sig_date(1i)"=>"", "lic_sig_date(2i)"=>"", "lic_sig_date(3i)"=>"", "lic_sig_date(1i)"=>"", "resp_agency_sig_date(2i)"=>"", "resp_agency_sig_date(3i)"=>"", "resp_agency_sig_date(1i)"=>""}, "commit"=>"Create Form!", "resident_id"=>"1"} | |
Resident Load (0.5ms) SELECT "residents".* FROM "residents" WHERE "residents"."id" = $1 LIMIT 1 [["id", "1"]] | |
(0.2ms) BEGIN | |
SQL (1.4ms) INSERT INTO "assessment_plan_forms" ("activity_prog", "activity_prog_desc", "admin_pos", "alc_drug_abuse", "alc_drug_abuse_desc", "ass_devices", "ass_devices_desc", "bathing", "bathing_desc", "can_hear", "can_hear_desc", "can_read_write", "can_read_write_desc", "can_speak", "can_speak_desc", "chores", "chores_desc", "created_at", "ctrl_behavior", "ctrl_behavior_desc", "ctrl_sex_behavior", "ctrl_sex_behavior_desc", "eat_feed", "eat_feed_desc", "exercise", "exercise_desc", "fam_friend", "fam_friend_desc", "follows_dir", "follows_dir_desc", "get_along_others", "get_along_others_desc", "grooming", "grooming_desc", "guard_sig", "guard_sig_date", "hobbies", "hobbies_desc", "hypo", "hypo_desc", "is_alert", "is_alert_desc", "job", "job_desc", "lic_sig", "lic_sig_date", "manages_money", "manages_money_desc", "med1", "med10", "med10_doc_full_name", "med10_dose", "med11", "med11_doc_full_name", "med11_dose", "med12", "med12_doc_full_name", "med12_dose", "med13", "med13_doc_full_name", "med13_dose", "med14", "med14_doc_full_name", "med14_dose", "med15", "med15_doc_full_name", "med15_dose", "med1_doc_full_name", "med1_dose", "med2", "med2_doc_full_name", "med2_dose", "med3", "med3_doc_full_name", "med3_dose", "med4", "med4_doc_full_name", "med4_dose", "med5", "med5_doc_full_name", "med5_dose", "med6", "med6_doc_full_name", "med6_dose", "med7", "med7_doc_full_name", "med7_dose", "med8", "med8_doc_full_name", "med8_dose", "med9", "med9_doc_full_name", "med9_dose", "moves_independent", "moves_independent_desc", "num_four_other", "num_four_other_desc", "num_two_other", "num_two_other_desc", "other_comments", "other_diff", "other_diff_desc", "pers_hygiene", "pers_hygiene_desc", "phys_limit", "phys_limit_desc", "pros_use", "pros_use_desc", "rec", "rec_desc", "religious", "religious_desc", "res_sig", "res_sig_date", "resident_id", "resp_agency_sig", "resp_agency_sig_date", "restrict_movement", "school", "school_desc", "self_dress", "self_dress_desc", "self_harmer", "self_harmer_desc", "senior_center", "senior_center_desc", "smokes", "smokes_desc", "social_acts", "social_acts_desc", "spec_diet", "spec_diet_desc", "spec_equip", "spec_equip_desc", "stair_climb", "stair_climb_desc", "submit_date", "takes_meds", "takes_meds_desc", "tells_time", "tells_time_desc", "toileting", "toileting_desc", "updated_at", "walk_mobility", "walk_mobility_desc") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146) RETURNING "id" [["activity_prog", nil], ["activity_prog_desc", ""], ["admin_pos", nil], ["alc_drug_abuse", nil], ["alc_drug_abuse_desc", ""], ["ass_devices", nil], ["ass_devices_desc", ""], ["bathing", nil], ["bathing_desc", ""], ["can_hear", nil], ["can_hear_desc", ""], ["can_read_write", nil], ["can_read_write_desc", ""], ["can_speak", nil], ["can_speak_desc", ""], ["chores", nil], ["chores_desc", ""], ["created_at", Sun, 23 Dec 2012 23:28:24 UTC +00:00], ["ctrl_behavior", nil], ["ctrl_behavior_desc", nil], ["ctrl_sex_behavior", nil], ["ctrl_sex_behavior_desc", ""], ["eat_feed", nil], ["eat_feed_desc", ""], ["exercise", nil], ["exercise_desc", ""], ["fam_friend", nil], ["fam_friend_desc", ""], ["follows_dir", nil], ["follows_dir_desc", ""], ["get_along_others", nil], ["get_along_others_desc", ""], ["grooming", nil], ["grooming_desc", ""], ["guard_sig", nil], ["guard_sig_date", nil], ["hobbies", nil], ["hobbies_desc", ""], ["hypo", nil], ["hypo_desc", ""], ["is_alert", nil], ["is_alert_desc", ""], ["job", nil], ["job_desc", ""], ["lic_sig", nil], ["lic_sig_date", nil], ["manages_money", nil], ["manages_money_desc", ""], ["med1", ""], ["med10", ""], ["med10_doc_full_name", ""], ["med10_dose", ""], ["med11", nil], ["med11_doc_full_name", nil], ["med11_dose", nil], ["med12", nil], ["med12_doc_full_name", nil], ["med12_dose", nil], ["med13", nil], ["med13_doc_full_name", nil], ["med13_dose", nil], ["med14", nil], ["med14_doc_full_name", nil], ["med14_dose", nil], ["med15", nil], ["med15_doc_full_name", nil], ["med15_dose", nil], ["med1_doc_full_name", ""], ["med1_dose", ""], ["med2", ""], ["med2_doc_full_name", ""], ["med2_dose", ""], ["med3", ""], ["med3_doc_full_name", ""], ["med3_dose", ""], ["med4", ""], ["med4_doc_full_name", ""], ["med4_dose", ""], ["med5", ""], ["med5_doc_full_name", ""], ["med5_dose", ""], ["med6", ""], ["med6_doc_full_name", ""], ["med6_dose", ""], ["med7", ""], ["med7_doc_full_name", ""], ["med7_dose", ""], ["med8", ""], ["med8_doc_full_name", ""], ["med8_dose", ""], ["med9", ""], ["med9_doc_full_name", ""], ["med9_dose", ""], ["moves_independent", nil], ["moves_independent_desc", ""], ["num_four_other", nil], ["num_four_other_desc", ""], ["num_two_other", nil], ["num_two_other_desc", ""], ["other_comments", ""], ["other_diff", nil], ["other_diff_desc", ""], ["pers_hygiene", nil], ["pers_hygiene_desc", ""], ["phys_limit", nil], ["phys_limit_desc", ""], ["pros_use", nil], ["pros_use_desc", ""], ["rec", nil], ["rec_desc", ""], ["religious", nil], ["religious_desc", ""], ["res_sig", nil], ["res_sig_date", nil], ["resident_id", 1], ["resp_agency_sig", nil], ["resp_agency_sig_date", nil], ["restrict_movement", nil], ["school", nil], ["school_desc", ""], ["self_dress", nil], ["self_dress_desc", ""], ["self_harmer", nil], ["self_harmer_desc", ""], ["senior_center", nil], ["senior_center_desc", ""], ["smokes", nil], ["smokes_desc", ""], ["social_acts", nil], ["social_acts_desc", ""], ["spec_diet", nil], ["spec_diet_desc", ""], ["spec_equip", nil], ["spec_equip_desc", ""], ["stair_climb", nil], ["stair_climb_desc", ""], ["submit_date", nil], ["takes_meds", nil], ["takes_meds_desc", ""], ["tells_time", nil], ["tells_time_desc", ""], ["toileting", nil], ["toileting_desc", ""], ["updated_at", Sun, 23 Dec 2012 23:28:24 UTC +00:00], ["walk_mobility", nil], ["walk_mobility_desc", ""]] | |
(0.4ms) COMMIT | |
Redirected to http://localhost:3000show | |
Completed 302 Found in 17ms (ActiveRecord: 2.5ms) | |
[2012-12-23 18:28:24] ERROR URI::InvalidURIError: the scheme http does not accept registry part: localhost:3000show (or bad hostname?) | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/generic.rb:1202:in `rescue in merge' | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/generic.rb:1199:in `merge' | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpresponse.rb:220:in `setup_header' | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpresponse.rb:150:in `send_response' | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:110:in `run' | |
/Users/beracus/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment