Hmm, that seems to always return false over here.
I tried this:
update_was_successful = @item.update_attributes(params[:item]) 
puts @item.status_changed?

Which outputs false, always. The weird thing is that it prints that before 
the update is shown in the console. I guess that is why it's always false.

Isn't the update_attributes method updating the item right away?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/1f8S0VjnS4IJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to