Guest User

Untitled

a guest
Apr 12th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. user = User.create(:username=>'test@example.com', :password => 'foobar', :password_confirmation => 'foobar')
  2.  
  3.  
  4. #<User:0x3706284 @errors=#<ActiveRecord::Errors:0x3705564 @errors={}, @base=#<User:0x3706284 ...>>, @password_confirmation="foobar", @password="foobar", @attributes={"salt"=>"085541f4e38c01725e665de939c6346c8ce20931", "updated_at"=>Sun Sep 09 00:27:46 -0400 2007, "crypted_password"=>"244e5aab0f109de2ac6d10cd609857c05b94e54b", "remember_token_expires_at"=>nil, "role"=>"", "username"=>"test@example.com", "id"=>4, "remember_token"=>nil, "password"=>"", "created_at"=>Sun Sep 09 00:27:46 -0400 2007}, @new_record=false>
Add Comment
Please, Sign In to add comment