method
select_date
v1.1.6 -
Show latest stable
- Class:
ActionView::Helpers::DateHelper
select_date(date = Date.today, options = {})public
Returns a set of html select-tags (one for year, month, and day) pre-selected with the date.
1Note
the method to make 'day' disappear.
If you wanna show "year" and "month" only, you can use "order" to do it:
select_date(Date.current, order: [:year, :month])
That's it.