Rails 3 - Can I set start date to date_select method?

前端 未结 2 467
[愿得一人]
[愿得一人] 2020-12-17 03:15

date_select method can only set :start_year, but i\'d like to set start date (e.g. date 3 months ago) (but there are no such options).

so, can i set start date to da

2条回答
  •  借酒劲吻你
    2020-12-17 03:41

    It is possible... e.g.

    :start_year – Set the start year for the year select. Default is Time.now.year - 5

    see this resource.

提交回复
热议问题