Thank you, that seems to work. I ended up overriding the input tag for date, using 3 selects instead of the select_date.
<def tag='input' for='date'> <%= select_day(this || current_time, attributes.merge(:prefix => param_name_for_this)) %> <%= select_month(this || current_time, attributes.merge(:prefix => param_name_for_this)) %> <%= select_year(this || current_time, attributes.merge(:prefix => param_name_for_this)) %> </def> That removes the order-option, but I don't need it anyway. Tell me if this could've been done simpler, this is the first Hobo and also the first rails app I'm implementing :) -RanzQ On Mar 30, 7:06 am, DBram <[email protected]> wrote: > 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.
