title: using different session model name in Authlogic
body: <p>I changed UserSession model name to Session in Authlogic gem but i'm getting this error.</p>
  
  <pre><code>NoMethodError in SessionsController#new
  
  undefined method `login_field' for Object:Class
  </code></pre>
  
  <p>Is it forbidden to use Session as a model name ? </p>
  
  <p>db schema</p>
  
  <pre><code> create_table "users", :force =&gt; true do |t|
      t.string   "login"
      t.string   "email"
      t.string   "crypted_password"
      t.string   "password_salt"
      t.string   "persistence_token"
      t.string   "perishable_token"
      t.datetime "created_at"
      t.datetime "updated_at"
    end
  </code></pre>
  
  <p>sessions_controller</p>
  
  <pre><code>class SessionsController &lt; ApplicationController
  
    def new
      @session = Session.new
    end
  
    def create
      @session = Session.new(params[:session])
  
        if @session.save
          redirect_to(root_url, :notice =&gt; 'Login successful.')
        else
          render :action =&gt; "new"
  
        end
  
    end
  
    def destroy
      @session = Session.find
      @session.destroy
      redirect_to(root_url, :notice =&gt; 'Goodbye!')
    end
  end
  </code></pre>
  
  <p>model: session.rb</p>
  
  <pre><code>class Session &lt; Authlogic::Session::Base
  
  end
  </code></pre>
  
  <p>application_controller</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    protect_from_forgery
  
  
   helper_method :current_user_session, :current_user
  
      private
        def current_user_session
          return @current_user_session if defined?(@current_user_session)
          @current_user_session = Session.find
        end
  
        def current_user
          return @current_user if defined?(@current_user)
          @current_user = current_user_session &amp;&amp; current_user_session.user
        end
  
  
  end
  </code></pre>
  
  <p>_form.html.erb</p>
  
  <pre><code>&lt;%= form_for(@session) do |f| %&gt;
  
    &lt;% if @session.errors.any? %&gt;
      &lt;div class="error messages"&gt;
        &lt;ul&gt;
        &lt;% @session.errors.full_messages.each do |msg| %&gt;
          &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
        &lt;% end %&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="field"&gt;
      &lt;%= f.label :login %&gt;
      &lt;%= f.text_field :login %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :password %&gt;
      &lt;%= f.password_field :password %&gt;
    &lt;/div&gt;
    &lt;div class="button"&gt;
      &lt;%= f.submit "Submit" %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>