Only years from 2001 to 2011 are available in a date field


#1

When I try to edit a date field in the drop down list I have only years
from 2001 to 2011: how can I add an arbitrary year that is NOT included
in this list?


#2

The default is to have 5 years before and after the current year. there
is a way you can extend it. try reading chapter 17 in the agile web
development book.


#3

On 5/24/06, fabio vitale removed_email_address@domain.invalid wrote:

When I try to edit a date field in the drop down list I have only years
from 2001 to 2011: how can I add an arbitrary year that is NOT included
in this list?

http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000479

Look at the options for select_year, specifically :start_year and
:end_year. select_date will accept these as well.

– James