Walter Davis wrote in post #1163868:
> On Dec 2, 2014, at 8:15 PM, Dmoneyzzz Darko <lists@ruby-forum.com>
> wrote:
>
>>> "appointment_date(3i)"=>"3",
>>
appointment_time field
> is not inside the appointment hash. So when that hash is used to update
> the @appointment instance, that value will not be added to it. It comes
> back around to how your form element was made. If you used the "bound"
> form helpers, as in f.text_field(:appointment_time) to make it, then the
> name attribute in the HTML would be <input
> name="appointment[appointment_time]" ...> and the value of that variable
> would be in the appointment hash.
>
> Walter
I do understand this. I tried to input f.select or form.select for this
array drop down but I recieved an error for both so I left select alone
and then it displayed. So I was thinking of encapsulating my array drop
down into a bigger form element. I have f.label on the line above but
the array select would not run with the f.
--
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/5cd235bdd720dff9111f0e59f5501a66%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment