Displaying different minute intervals on datetime_select
Posted on May 28, 2007 at 10:23 PM
I’ve been looking for a way to limit the number of options under minute on timeselect and datetimeselect. You can set the :minute_step to 15 which will give you: 00, 15, 30 and 45.
<%= datetime_select 'game', 'game_date_time', {:minute_step => 15} %>
Hope that helps!
Comments
There are 0 comments on this post. Post yours →
Post a comment
Required fields in bold.