Skip to content

Instantly share code, notes, and snippets.

@addamh
Created March 2, 2011 03:41
Show Gist options
  • Save addamh/850431 to your computer and use it in GitHub Desktop.
Save addamh/850431 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p136 :004 > User.new(:username => 'addamh', :email => '[email protected]', :password => 'temp')
=> #<User id: nil, username: nil, email: "[email protected]", encrypted_password: "$2a$10$UGt16NYX/NltywLXqOHqzOgSq9uAAhjznZtp8hf3tWiU...", password_salt: "$2a$10$UGt16NYX/NltywLXqOHqzO", sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: nil, updated_at: nil>
ruby-1.9.2-p136 :005 > e = _
=> #<User id: nil, username: nil, email: "[email protected]", encrypted_password: "$2a$10$UGt16NYX/NltywLXqOHqzOgSq9uAAhjznZtp8hf3tWiU...", password_salt: "$2a$10$UGt16NYX/NltywLXqOHqzO", sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: nil, updated_at: nil>
ruby-1.9.2-p136 :006 > e.save
=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment