Hi, I''m creating a date type field to put birthdate, but the years on this field only go to 2003, what should I do?? --~--~---------~--~----~------------~-------~--~----~ 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 Jan 12, 2008, at 4:24 PM, luizbiagi wrote:> Hi, I''m creating a date type field to put birthdate, but the years on > this field only go to 2003, what should I do??It''s not clear what you''re asking. Are you talking about date_select on an input form? If so, you can do something like: <%= date_select ''person'', ''birthdate'', {:start_year => 1920, :end_year => 2008} %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
tnx man, that''s right just withou the {} tnx again
On Jan 12, 11:14 pm, George Bailey
<listcatc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> On Jan 12, 2008, at 4:24 PM, luizbiagi wrote:
>
> > Hi, I''m creating a date type field to put birthdate, but the
years on
> > this field only go to 2003, what should I do??
>
> It''s not clear what you''re asking. Are you talking about
date_select
> on an input form?
>
> If so, you can do something like:
> <%= date_select ''person'',
''birthdate'', {:start_year => 1920, :end_year
> => 2008} %>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---