05 Apr '12, 8am

@akahn

All column values are automatically available through basic accessors on the Active Record object, but sometimes you want to specialize this behavior. This can be done by overwriting the default accessors (using the same name as the attribute) and calling read_attribute(attr_name) and write_attribute(attr_name, value)

Full article: http://api.rubyonrails.org/classes/ActiveRecord/Base.html...

Tweets