Sami on Rails
Showing posts with label
update Attribute
.
Show all posts
Showing posts with label
update Attribute
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)