控制器中的[column_name]_changed?
不起作用,但模型中的可以吗?
original_name = "test1"
new_name = "test2"
@user = User.find(params[:id])
puts"__________#{@user.name}" # "test1"
@user.update_attributes(params[:user])
puts"__________#{@user.name}" # "test2"
@user.name_changed? # return false is't not work