title: Sorcery registration not going through
body: <p>I'm trying to use the Sorcery gem for authenticating users, but after the registration form is filled out it redirects back to the registration page with an error. I'm able to create a user from the console, however.</p>
  
  <p>log file:</p>
  
  <pre><code>Started POST "/users" for 127.0.0.1 at 2012-01-23 13:54:12 -0500
  Processing by UsersController#create as HTML
  Parameters: {"utf8"=&gt;"✓",     "authenticity_token"=&gt;"Rh6R5rwLu+XchOv3ki9iATgihU8hqr84y4AcQbyKFyI=", "user"=&gt;  {"username"=&gt;"testusername", "email"=&gt;"testemail@email.com", "password"=&gt;"[FILTERED]"}, "commit"=&gt;"Register"}
  [1m[35m (0.1ms)[0m  SELECT 1 FROM "users" WHERE "users"."username" = 'testusername' LIMIT 1
  [1m[36m (0.1ms)[0m  [1mSELECT 1 FROM "users" WHERE "users"."email" = 'testemail@email.com' LIMIT 1[0m
  Rendered users/new.html.erb within layouts/application (2.1ms)
  Completed 200 OK in 29ms (Views: 17.1ms | ActiveRecord: 0.3ms)
  </code></pre>
  
  <p>users_controller.rb</p>
  
  <pre><code>class UsersController &lt; ApplicationController
      def new
          @user = User.new
      end
  
      def create
          @user = User.new(params[:user])
  
          if @user.save
              redirect_to 'Static#index', :notice =&gt; "Thanks for registering!"
          else
              render :new
          end
      end
  end
  </code></pre>
  
  <p>models/user.rb:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
     authenticates_with_sorcery!
  
    attr_accessible :username, :email, :password
    validates_presence_of :username
    validates_presence_of :password, :on =&gt; :create
    validates_presence_of :email
    validates_length_of :password, :minimum =&gt; 7
    validates_length_of :username, :minimum =&gt; 10
    validates_uniqueness_of :username
    validates_uniqueness_of :email
  end
  </code></pre>
  
  <p>config/initializers/sorcery.rb:</p>
  
  <pre><code>Rails.application.config.sorcery.submodules = []
  
  Rails.application.config.sorcery.configure do |config|
  
  config.user_config do |user|
  
  end
  
  config.user_class = "User"
  end
  </code></pre>
  
  <p>sorcery migration:</p>
  
  <pre><code>class SorceryCore &lt; ActiveRecord::Migration
      def self.up
          create_table :users do |t|
  
              t.string :username,         :null =&gt; false
              t.string :email,            :default =&gt; nil
              t.string :crypted_password, :default =&gt; nil
              t.string :salt,             :default =&gt; nil
              t.timestamps
  
          end
      end
  
      def self.down
          drop_table :users
      end
  end
  </code></pre>