title: Rails Devise User Exists on empty DB
body: <p>I am trying to create a User through Devise but am running into issues.</p>
  
  <p><code>home#land</code></p>
  
  <pre><code>def land
    @resource = User.new
    @devise_mapping = Devise.mappings[:user]
  end
  </code></pre>
  
  <p><code>land.html.haml</code></p>
  
  <pre><code>= form_for @resource, :as =&gt; :user, :url =&gt; registration_path(:user), :remote =&gt; true do
    = label_tag 'user[email]', raw("&lt;h3&gt;Stay Informed!&lt;/h3&gt;")
    = text_field_tag 'user[email]', nil, {:placeholder =&gt; "Your email", :required =&gt; true}
    %input(type="submit" name="commit" value="Add")
  </code></pre>
  
  <p><code>user.rb</code></p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    before_validation(:on =&gt; :create) do
      self.password = "none"
      self.password_confirmation = "none"
    end
    # Include default devise modules. Others available are:
    # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  
    # Setup accessible (or protected) attributes for your model
    attr_accessible :email, :password, :password_confirmation, :remember_me
  end
  </code></pre>
  
  <p>Default Devise::RegistrationsController is being used.</p>
  
  <p>This appears on submission:</p>
  
  <p><code>development.log</code></p>
  
  <pre><code>Started POST "/users" for 127.0.0.1 at 2013-04-24 20:49:46 -0300
  Processing by Devise::RegistrationsController#create as JS
    Parameters: {"utf8"=&gt;"✓", "user"=&gt;{"email"=&gt;"me@mjohnst.com"}, "commit"=&gt;"Add"}
    [1m[35m (0.3ms)[0m  BEGIN
    [1m[36mUser Exists (0.5ms)[0m  [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'me@mjohnst.com' LIMIT 1[0m
    [1m[35m (0.2ms)[0m  ROLLBACK
    Rendered devise/registrations/create.js (0.4ms)
  Completed 200 OK in 84ms (Views: 4.1ms | ActiveRecord: 1.0ms)
  </code></pre>
  
  <p>However, in <code>rails console</code>:</p>
  
  <pre><code>2.0.0p0 :011 &gt; User.all
    User Load (0.5ms)  SELECT "users".* FROM "users"
   =&gt; #&lt;ActiveRecord::Relation []&gt; 
  </code></pre>
  
  <p>and <code>localhost:5000/users</code> is completely empty...</p>
  
  <p>Why am I getting a User Exists and ROLLBACK when there are no users in my DB?</p>