On Mon, Dec 1, 2014 at 6:15 PM, Dmoneyzzz Darko <lists@ruby-forum.com> wrote:
> I ran the rails console and entered Appointment.last and found that
> these three fields were entered into the database as nil even though
> they were selected in the Appointment form.
>
> #<Appointment id: 22, patient_id: 8, appointment_date: "2014-12-01",
> created_at: "2014-12-01 22:23:26", updated_at: "2014-12-01 22:23:26",
> physician_id: 4, reason: "asfafs", notes: "sfa", diagnostic_code_id:
> nil, appt_completion: nil, appointment_time: nil>
>
> So I'm not sure of my next step code wise, but I know I should figure
> out how to get the select in the form to create and update info to send
> to the db.
You should look at the log file to see exactly what parameters are
being sent to your create action.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@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/CACmC4yAgudAL839nFz6KqLicQakz4NQrEAOHBs-1yJtUax5cCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment