I am using date_select and in some instances it only shows about 10 years worth of choices. Same form on other users shows the whole range. date_select looks like this <%= date_select ''user'',''birthdate'' , :start_year => 1940 %> I would expect to always see 1940-2006 or so , but i dont always do. Is there a way to force the range or explain why i woudlnt always see this range ? thanks adam
Adam Denenberg wrote:> I am using date_select and in some instances it only shows about 10 > years worth of choices. Same form on other users shows the whole > range. date_select looks like this > > <%= date_select ''user'',''birthdate'' , :start_year => 1940 %> > > I would expect to always see 1940-2006 or so , but i dont always do. > Is there a way to force the range or explain why i woudlnt always see > this range ?Was working with this yesterday, and here is how I did it: <%= date_select ''user'',''birthdate'' , :start_year => 1940, :end_year => Time.now.year %> You could always do some sort of calculation on that, as I am assuming you don''t have 1 or 2 year olds using your site :) -- Posted via http://www.ruby-forum.com/.
thanks i will try that. Is this a known bug of some sort ? On 1/19/06, Brad Daily <brad@bradleyboy.com> wrote:> Adam Denenberg wrote: > > I am using date_select and in some instances it only shows about 10 > > years worth of choices. Same form on other users shows the whole > > range. date_select looks like this > > > > <%= date_select ''user'',''birthdate'' , :start_year => 1940 %> > > > > I would expect to always see 1940-2006 or so , but i dont always do. > > Is there a way to force the range or explain why i woudlnt always see > > this range ? > > Was working with this yesterday, and here is how I did it: > > <%= date_select ''user'',''birthdate'' , :start_year => 1940, :end_year => > Time.now.year %> > > You could always do some sort of calculation on that, as I am assuming > you don''t have 1 or 2 year olds using your site :) > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >