Guest User

Untitled

a guest
Mar 14th, 2018
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. >> user = User.create({
  2. ?> :login => 'test',
  3. ?> :email => 'someone@example.com',
  4. ?> :password => 'admin',
  5. ?> :password_confirmation => 'admin',
  6. ?> :admin => true
  7. >> })
  8.  
  9. >> <User id: 4, login: "test", email: "someone@example.com",
  10. crypted_password: "224054b8bc03abd6d354e68bd63f2f867c21ccb6",
  11. salt: "fcc6cc740b42bdb6904dfd9fdf5f388f4c8a814a",
  12. created_at: "2008-03-28 20:01:23", updated_at: "2008-03-28 20:01:23",
  13. remember_token: nil, remember_token_expires_at: nil,
  14. admin: false>
Add Comment
Please, Sign In to add comment