Trying to add start year to date_select <%= date_select(:start_year => 1980)%> It''s throwing an exception "wrong number of arguments (1 for 0) Can''t I add a start_year, API shows this option ? TIA Stuart http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sat, 2006-11-04 at 06:00 -0700, Dark Ambient wrote:> Trying to add start year to date_select > > <%= date_select(:start_year => 1980)%> > > It''s throwing an exception "wrong number of arguments (1 for 0) > Can''t I add a start_year, API shows this option ?---- sure - but you have to have some field info... <%= date_select ''client'', ''dob'', :start_year => 1920, :end_year => 2000 %></p> Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Craig, I switched to select_year and the start and end works fine. Is there a way to have it where it might show 1980 1990 thru 2006 ? So in other words skip 81-89. TIA Stuart On 11/4/06, Craig White <craigwhite-BQ75lA0ptkhBDgjK7y7TUQ@public.gmane.org> wrote:> > > On Sat, 2006-11-04 at 06:00 -0700, Dark Ambient wrote: > > Trying to add start year to date_select > > > > <%= date_select(:start_year => 1980)%> > > > > It''s throwing an exception "wrong number of arguments (1 for 0) > > Can''t I add a start_year, API shows this option ? > ---- > sure - but you have to have some field info... > > <%= date_select ''client'', ''dob'', :start_year => 1920, :end_year => 2000 > %></p> > > Craig > > > > >-- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---