> Rails will automatically instantiate a Time attribute from the set of
> component param keys and values if you call new, update_attribute,
> or update_attributes with the appropriate part of the params hash.
Sorry, I don''t get it. I have something like
<%= datetime_select ''bill'',
''activity_from'' %>
which generates a bunch of selectors to pick up the date and time... but
how do I access it in the action where the form is posted to?
@from = DateTime.new(params[:bill][:activity_from])
or
@from = params[:bill][:activity_from]
?
Please give me a hint,
Thank you in advance!
Andreas
--
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 post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---