Ruby on Rails
Tuesday, May 17, 2011
What does it matter where the data comes from? ActiveRecord parses it the same? If you don't know, or if it isn't possible, thats fine, but I don't want to overcomplicate the question.
On Tue, May 17, 2011 at 4:21 PM, Colin Law <clanlaw@googlemail.com> wrote:
On 17 May 2011 20:57, TomRossi7 <tom@themolehill.com> wrote:
> 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.
Is the above in reply to my questions or are you just asking the same
question again? If it is in reply to my post then try again, quoting
my reply and answering the questions.
Another question, where are the date strings coming from? User input?
Don't forget to answer the questions in the first post though.
Colin
--
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.
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment