u = User.new(:name => "Borris Yeltzin", :date_of_birth => Date.today - 20.years, :ssn => "1234") => # [4] pry(main)> u.save (0.2ms) BEGIN SQL (2.8ms) INSERT INTO "users" ("claimable", "created_at", "crypted_password", "date_of_birth", "email", "name", "salt", "ssn", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["claimable", true], ["created_at", Mon, 29 Oct 2012 16:15:46 UTC +00:00], ["crypted_password", nil], ["date_of_birth", Thu, 29 Oct 1992], ["email", nil], ["name", "Borris Yeltzin"], ["salt", nil], ["ssn", "1234"], ["updated_at", Mon, 29 Oct 2012 16:15:46 UTC +00:00]] (0.3ms) COMMIT => true [5] pry(main)> u.update_attributes(:email => "borris.yeltzin@example.com", :password => "f00bar", :password_confirmation => "f00bar") (0.2ms) BEGIN (0.3ms) ROLLBACK => false [6] pry(main)> u.errors => #, @messages={}> [7] pry(main)> u.valid? => true [8] pry(main)> u.save (0.3ms) BEGIN (0.4ms) UPDATE "users" SET "email" = 'borris.yeltzin@example.com', "salt" = '4xkPHrAUSXx5sSjgTLwV', "crypted_password" = '$2a$10$efVVKZ2YUl415K7Y6c4EmOq/S0wCMqtOW6PbMvj18TPSK3ChmCUby', "claimable" = 'f', "updated_at" = '2012-10-29 16:17:15.162173' WHERE "users"."id" = 13 (2.3ms) COMMIT => true [9] pry(main)>