How do I extend the range of the date_select in Ruby?
It only goes as far as 2005 and I'd like to use it for the date of birth.
You can use the :start_year
option, see the documentation.
<%= f.date_select :exp_date, :start_year=>2000,:end_year=>2030 %>
it will display 2000 to 2030 years..
if u want more you can change the :start_year and :end_year values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With