method
select_date
![Moderate documentation Importance_2](https://d2vfyqvduarcvs.cloudfront.net/images/importance_2.png?1349367920)
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. It’s possible to explicitly set the order of the tags using the :order option with an array of symbols :year, :month and :day in the desired order. If you do not supply a Symbol, it will be appened onto the :order passed in.
Register or
log in
to add new notes.
hechien -
January 28, 2016
![Default_avatar_30](https://www.gravatar.com/avatar/ff7afae5b23125e25e18ad8c0404bd78?size=30&default=http://apidock.com/images/default_avatar_30.png)
0 thanks
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.