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

Careful.  My kid was born in 2004... not 1904. He probably won't be  
signing up on your website, but then again he recently admonished me  
for not knowing about youtube playlists so you never know.

Better to check the 2 digits... if it's less than 09 add 2000.   
Otherwise add 1900.  Of course that will tick off all your 100-yr old  
users :)


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

Reply via email to