title: Can't login to ActiveAdmin
body: <p>I'm facing issues logging in to ActiveAdmin. Using solutions from  <a href="https://stackoverflow.com/questions/20447006/cant-log-into-active-admin-any-way-to-create-an-admin-user">Can&#39;t log into Active Admin. Any way to create an admin user?</a> and <a href="https://stackoverflow.com/questions/11074806/cant-login-to-active-admin">Cant login to Active Admin</a>, </p>
  
  <p>I tried running the following in my <code>rails console</code></p>
  
  <pre><code>user = AdminUser.new
  user.email = 'abc@example.com'
  user.password = 'new_password'
  user.save
  </code></pre>
  
  <p>On <code>user.save</code>, it gives me the following message:</p>
  
  <pre><code>(0.0ms)  begin transaction
  AdminUser Exists (0.0ms)  SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'abc@example.com' LIMIT 1
  false
  (1.0ms)  rollback transaction
  </code></pre>
  
  <p>As far as I understand, this failed to create the record, correct?</p>
  
  <p>I also tried the following solution:</p>
  
  <pre><code>AdminUser.create :email =&gt; 'abc1@example.com', :password =&gt; 'password', :password_confirmation =&gt; 'password'
  </code></pre>
  
  <p>This gives the following message in the console:</p>
  
  <pre><code>    (0.0ms)  begin transaction
  AdminUser Exists (0.0ms)  SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'ss1@example.com' LIMIT 1
  SQL (11.0ms)  INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)  [["created_at", Tue, 26 Aug 2014 05:41:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "ss1@example.com"], ["encrypted_password", "$2a$10$zLnnk8N3wx9GRb874YjjzOHukteF/qRjWPQMFTZOr7NMepljRRqOC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Tue, 26 Aug 2014 05:41:42 UTC +00:00]]
  (138.9ms)  commit transaction
  
  
  #&lt;AdminUser id: 3, email: "ss1@example.com", encrypted_password: "$2a$10$zLnnk8N3wx9GRb874YjjzOHukteF/qRjWPQMFTZOr7NM...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, 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: "2014-08-26 05:41:42", updated_at: "2014-08-26 05:41:42"&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Also tried dropping and creating all models as follows: </p>
  
  <pre><code>rake db:drop:all
  rake db:create:all
  rake db:migrate
  </code></pre>
  
  <p>However, it still fails to login because of invalid username or password. How do I fix this?</p>