Sometimes I need a user to select a date and time within a certain range. To make it more easier for the end user I've created a patch for the ActionView tag helpers so that select_month, select_year, select_minute and select_hour will output less <option> tags.
An example of this in use is
datetime_select("lesson", "lesson_time", :min_date => Date.today,
:max_date => 12.weeks.from_now, :start_hour => 8, :end_hour => 20)
These are the changes:
* select_year now accepts :min_date, :max_date
* select_month now accepts :min_date, :max_date, :start_month, :end_month
* select_hour now accepts :min_time, :max_time
* select_minute now accepts :min_time, :max_time, :start_minute, :end_minute