Maybe you are changing the attribute in place thus the change is not
saved ?
Read:
"If an attribute is modified in-place then make use of
[attribute_name]_will_change! to mark that the attribute is changing.
Otherwise ActiveModel can't track changes to in-place attributes."
http://api.rubyonrails.org/classes/ActiveModel/Dirty.html
Maybe you don't see the change immediately because transaction is
still going ?
Robert Pankowecki
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment