Last Updated: February 25, 2016
·
959
· 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"