2014-08-27 115 views

回答

1

假设导轨4:

user = User.find_by email: "[email protected]" 
user.update!(admin: true)