I''m trying to let users select a date, but I''m not storing the
result in
a database, just in an instance variable. Is there a way to do this?
I''ve been trying many different variations. Here is my latest:
In the view I have:
<%= date_select (@params[:expiry], :expiry, :start_year =>
Date.today.year) %>
In the controller, nothing is passed into params[:expiry] for some
reason. How can I use date_select with an instance variable?
--
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?hl=en
-~----------~----~----~----~------~----~------~--~---