Created
October 20, 2010 18:11
-
-
Save sbeam/636978 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sbeam@pris ~/Sites/risepoker]$ ./script/console | |
| Loading development environment (Rails 2.3.8) | |
| ruby-1.8.7-p302 > user = User.find_by_email('[email protected]') | |
| => #<User id: 1, email: "[email protected]", crypted_password: "1f0777c516b7443484cdc4f0b11928e346ec31031fcb83b0712...", salt: "PreTkwuZsGGfCr7pXprw", remember_token: nil, remember_token_expires_at: nil, created_at: "2010-09-23 19:59:47", updated_at: "2010-09-27 20:48:27", persistence_token: "d0a60168b42533b95ae97935badca4a9626e9be500be5e283df...", single_access_token: "MCFb894ZaLlAsl3RPALZ", perishable_token: "hDp6RM24MI9YDPYbJY8K", login_count: 5, failed_login_count: 0, last_request_at: "2010-09-27 20:48:27", current_login_at: "2010-09-27 20:48:09", last_login_at: "2010-09-27 20:44:03", current_login_ip: "76.118.157.124", last_login_ip: "76.118.157.124", login: "[email protected]", ship_address_id: nil, bill_address_id: nil, openid_identifier: nil, api_key: nil> | |
| ruby-1.8.7-p302 > user.password = user.password_confirmation = 'risepoker' | |
| => "risepoker" | |
| ruby-1.8.7-p302 > user.save | |
| => true | |
| ruby-1.8.7-p302 > user.roles | |
| => [#<Role id: 2, name: "user">, #<Role id: 1, name: "admin">] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment