Sami on Rails
Sunday, 28 April 2013
working with console => update attribute
u=User.find(id)
u.update_attribute(:role, 'admin')
u
u.password
u.role
u.status
etc etc
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment