On Dec 2, 2014, at 5:44 PM, Dmoneyzzz Darko <li...@ruby-forum.com> wrote:
> 
> Processing by AppointmentsController#create as HTML
>  Parameters: {"utf8"=>"✓", 
> "authenticity_token"=>"3aeYhNBVYaFdHpPHWR5qpoD3QDB8PRUJIiR94WC1kag=", 
> "appointment"=>{"physician_id"=>"4", "patient_id"=>"8", 
> "reason"=>"fdsdfs", "appointment_date(1i)"=>"2014", 
> "appointment_date(2i)"=>"12", "appointment_date(3i)"=>"3", 
> "diagnostic_code_id"=>"1", "notes"=>"sdfsdfs", 
> "appt_completion"=>"true"}, "appointment_time"=>{"test"=>"7"}, 
> "commit"=>"Create Appointment"}
>  [1m[35m (0.0ms)[0m  begin transaction
>  [1m[36mSQL (1.0ms)[0m  [1mINSERT INTO "appointments" 
> ("appointment_date", "appt_completion", "created_at", 
> "diagnostic_code_id", "notes", "patient_id", "physician_id", "reason", 
> "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m 
> [["appointment_date", "2014-12-03"], ["appt_completion", "t"], 
> ["created_at", "2014-12-03 00:04:58.420420"], ["diagnostic_code_id", 
> 1.0], ["notes", "sdfsdfs"], ["patient_id", 8], ["physician_id", 4], 
> ["reason", "fdsdfs"], ["updated_at", "2014-12-03 00:04:58.420420"]]

Let me re-format the parameters for you a little and see if you can spot the 
problem:

{
  "utf8"=>"✓", 
  "authenticity_token"=>"3aeYhNBVYaFdHpPHWR5qpoD3QDB8PRUJIiR94WC1kag=", 
  "appointment"=>{
    "physician_id"=>"4", 
    "patient_id"=>"8", 
    "reason"=>"fdsdfs", 
    "appointment_date(1i)"=>"2014", 
    "appointment_date(2i)"=>"12", 
    "appointment_date(3i)"=>"3", 
    "diagnostic_code_id"=>"1", 
    "notes"=>"sdfsdfs", 
    "appt_completion"=>"true"
  }, 
  "appointment_time"=>{
    "test"=>"7"
  }, 
  "commit"=>"Create Appointment"
}

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/EDF2D3A5-91C2-499F-AC6C-1FE28F616022%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to