Rails Form date_select Helper Options date range start end how many years

To change the Default Settings for the date_select Helper in a Rails form.

cd path/To/railsApp
cd app/views/yourApp
nano _form.html.erb

Edit the line containing date_select and insert some options.

Here is a list: date_select Options

For example if you want to Change the Select Date Range to be 1990-1910:

f.date_select(:date,:start_year => 1990,:end_year => 1910)

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer