From 6551f49bde78d0737ecd2a1bacb82da8379f660d Mon Sep 17 00:00:00 2001 From: Linxiangyu Date: Wed, 8 Jan 2014 10:49:04 +0800 Subject: [PATCH] README: add password_confirmation field in initial administrator user Please enter the commit message for your changes. Lines starting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b827d6..3b5a0e3 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ in a `config/initializers/production.rb` or similar file: lobsters$ rails console Loading development environment (Rails 3.2.6) - irb(main):001:0> u = User.new(:username => "test", :email => "test@example.com", :password => "test") + irb(main):001:0> u = User.new(:username => "test", :email => "test@example.com", :password => "test", :password_confirmation => "test") irb(main):002:0> u.is_admin = true irb(main):003:0> u.is_moderator = true irb(main):004:0> u.save