title: Rails, Devise, Validatable not working?
body: <p>I have Devise set up with :validatable on my simple app, but I can't seem to get the registration sign-up form to stop if it caught an error.</p>
  
  <p>User.rb:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  ...
  end
  </code></pre>
  
  <p>As of now, I have a sign-up form with standard name/email/password/age fields, and everything works fine when I submit the form that doesn't fail.</p>
  
  <p>But, if I try to create a new user that I know would fail (ex. create a user with an e-mail that already exists), it will still try to create the user, and instead of redirecting back to the sign-up form, it will continue to load the next page as if it was a valid user! Of course, at this point, I get an error because it tries to load up a page with 'current_user' code, and the user doesn't exist.</p>
  
  <p>Where do I even begin to track this down? Not sure if it's the way I installed Devise, or something else?? Please help. Thanks!</p>