On 2/11/08, rogwei <rogwei-Wuw85uim5zDR7s880joybQ@public.gmane.org>
wrote:>
> If this has been discussed before, pardon me. My search skills might
> not be up to the task of finding it. Does Rails have automagic support
> for created/modified columns like cakePHP does?
Guessing a bit about cakePHP, I''d say yes.
If you create a datetime called created_at, or created_on it will be
automatically initialized when each record is first saved. a field
named either updated_at, or updated_on will set each time the record
is saved.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---