Problems with date field

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??

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} %>

tnx man, that’s right just withou the {} tnx again

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs