Rails 3 check if attribute changed

The Solution to Rails 3 check if attribute changed is


Check out ActiveModel::Dirty (available on all models by default). The documentation is really good, but it lets you do things such as:

@user.street1_changed? # => true/false

~ Answered on 2011-02-19 13:57:59


Most Viewed Questions: