Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> user = User.create({
- ?> :login => 'test',
- ?> :email => 'someone@example.com',
- ?> :password => 'admin',
- ?> :password_confirmation => 'admin',
- ?> :admin => true
- >> })
- >> <User id: 4, login: "test", email: "someone@example.com",
- crypted_password: "224054b8bc03abd6d354e68bd63f2f867c21ccb6",
- salt: "fcc6cc740b42bdb6904dfd9fdf5f388f4c8a814a",
- created_at: "2008-03-28 20:01:23", updated_at: "2008-03-28 20:01:23",
- remember_token: nil, remember_token_expires_at: nil,
- admin: false>
Add Comment
Please, Sign In to add comment