Last Updated: February 25, 2016
·
1.048K
· nicolaslazartekaqui

Rails - Reload object

@user = User.first
@user.name
# => "John"

them

User.first.update_attributes(name: "Bill")
@user.name
# => "John"

reload object

@user.reload
@user.name
# => "Bill"