Forum: Ruby on Rails date_select and sessions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Adam D. (Guest)
on 2006-01-06 21:30
(Received via mailing list)
i am using date_select to allow someone to select their birthdate in a
form.  however date_select uses 3 wierd labels in the forms like
follows:

<select name="user[birthdate(1i)]">
<option value="1940">1940</option>
<option value="1941">1941</option>
.

and then the month is user[birthdate(2i)] and so on.  My issue is i
dont know the best way to keep this data in a session (if there is a
user error on the form and want to keep data populated).  Also if
someone wants to edit their birthdate later on after a find() call,
how is this stored and later parsed by the form ?

thanks
adam
This topic is locked and can not be replied to.