Bob Smith wrote: > What I am trying to do is have the user enter a 2 digit birth year in > the view, then have the controller do it's magic and get a 4 digit > date for the birthday.
That should probably be done in the model, not the controller. > That part went fine, but now I'm having trouble > replacing the 2 digit year in params with the correct 4 digit value > before the create/update to the database. Please Help Just assign appropriately: params[:birth_year] += 1900 > > Thanks > > Bob Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

