created_on / updated_on
Posted by tom February 17th, 2006
Just discovered something very convenient: Rails will automatically maintain fields named “created_at” or “created_on” and “updated_at” or “updated_on”. These would be time-stamps of when the record is created and/or updated. See ActiveRecord::Timestamp for more information.
You also get quite a bit of error handling for free when using Rails, for more information see ActiveRecord::Validations::ClassMethods.

Leave a Reply