usnvyg
Last Updated: February 25, 2016
·
321
· nicolaslazartekaqui
Img 3566

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"    
Say Thanks
Respond