[Rails] Re: Re: Re: Re: Re: Display all values in the show.html.erb originally selected in the form.
Hassan Schroeder wrote in post #1163806:
> On Mon, Dec 1, 2014 at 7:34 PM, Dmoneyzzz Darko <lists@ruby-forum.com>
> wrote:
>
>> TO "appointments"
>>
>
("id","patient_id","appointment_date","created_at","updated_at","physician_id","reason","notes","diagnostic_id","diagnostic_code_id","appt_completion","appointment_time")
>> VALUES (22, 8, '2014-12-01', '2014-12-01 22:23:26.455231', '2014-12-01
>> 22:23:26.455231', 4, 'asfafs', 'sfa', NULL, NULL, NULL, NULL)
>
> OK, that's a SQL statement, but what do the actual parameters
> look like?
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"3aeYhNBVYaFdHpPHWR5qpoD3QDB8PRUJIiR94WC1kag=",
"appointment"=>{"physician_id"=>"5", "patient_id"=>"12",
"reason"=>"Because", "appointment_date(1i)"=>"2014",
"appointment_date(2i)"=>"11", "appointment_date(3i)"=>"30",
"diagnostic_code_id"=>"3", "notes"=>"Easy"}, "commit"=>"Create
Appointment"}
I found this in my development log. In particular, these parameters do
not contain appointment_time but I am sure I added the column
respectively.
--
Posted via http://www.ruby-forum.com/.
--
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/9a1fe2f4aeceed7fda9ce14686be2ebf%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment