And finally, an example:

# Generates a select field for years that defaults to the current year
that
# has descending year values
select_year(Date.today, :start_year => 2005, :end_year => 1900)

DBram

On Mar 29, 9:01 am, RanzQ <[email protected]> wrote:
> Hello everyone!
>
> Is there something changed in the newest Rails (3.0.5) version
> regarding to Date Helper, since I can't get this working?
>
> I've tried this in my application.dryml, as suggested in an earlier
> thread:
>
> <extend tag='input' for='date'>
>   <old-input merge order="day,month,year" start-year="&1990" />
> </extend>
>
> But the date selectors still have the default +-5 years in the
> dropdown (that's not good in a birthday field).
>
> The documentation for the Date Helper is a bit odd, it clearly states
> that the 'date_select' has that option, but I'm not sure about the
> 'select_date'.
>
> I also tried changing the <input for='date'> tag to use 'date_select',
> and I got the start-year/end-year working in the form, but since the
> implementation is different, saving the values doesn't work.
>
> Thanks in advance!
>
> -RanzQ

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to