will_change!

Dear all
model person
  id: 1,
  name: "test"
end
i need some explanation about name_will_change!

you're not the only one.

I think we need some explanation about what question you are trying to ask.

Colin

For example:
i have model Person
Class Person
  id: 1
  name: "test"
end

this code:
Person.name_will_change!

why we need to put that above line of code?

I think these probably cover it.

http://railscasts.com/episodes/109-tracking-attribute-changes/
http://archives.ryandaigle.com/articles/2008/3/31/what-s-new-in-edge-rails-dirty-object

Colin

Hi Colin Law
it's very good explanation!

thank very much !!!