Ruby on Rails Tuesday, May 17, 2011

ActiveRecord, by default, parses strings using the Date.parse method.  I'm trying to figure out how to tell it to use the comp=true option so it will parse two-digit years more logically.  Currently, the default is false which allows you to say person.birthday= '10/29/75' and it parses that as October 29th of the year 0075.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment