search for: select_second

Displaying 2 results from an estimated 2 matches for "select_second".

Did you mean: select_cond
2006 Jul 18
1
Auto-populating time portion of a datetime field from a form
I see that if I use the date_select helper in my view, then in the generated page, my selects are named obj[datetime_field(1i)] (and 2i and 3i for the other parts). These auto-populate the date portion of my datetime_field. I have another datetime field that I''m presenting the time from and I would like to use a similar scheme to autopopulate it. Currently, I''ve used the
2006 Jul 06
3
Understanding date_select naming conventions
...rtDate(3i)] Year: current_job[StartDate(1i)] I''m assuming that the Xi identifiers somehow specify the appropriate date part from a date or time value. Can anyone shed some light on how this works? Where can I get definite info. on it? Also, I am using select_hour, select_minute, and select_second to handle the time portion of another field. Do I need to use a similar naming convention so that the correct time components will be set upon form submission? Thanks, Wes -- Posted via http://www.ruby-forum.com/.