Have you considered using the Chronic gem?
I don't know how to do what you're asking but have recently implement
Chronic to "make date parsing more sane." (Actual verbiage from my
assigned task.)
It's quite a handy gem, you might consider implementing it.
On May 17, 11:11 am, TomRossi7 <t...@themolehill.com> wrote:
> Does anyone know how to change the default option for the Date.parse
> (which ActiveRecord is using on all date fields). I would like the
> "comp" option to default to true so I don't have to account for 2-
> digit dates throughout my application.
>
> http://corelib.rubyonrails.org/classes/Date.html#M001228
>
> Thanks!
> Tom
--
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