title: Routing Error: uninitialized constant Sessions
body: <p>I'm following <a href="http://railscasts.com/episodes/250-authentication-from-scratch" rel="nofollow">this Ruby Railcasts episode</a> to get some simple auth going, and I'm getting the error <code>uninitialized constant Sessions</code> when I navigate to the login page. I've checked my classes and the names are proper, which seems to be the problem most people report. Any idea what might be happening here?</p>
  
  <p>The name of my controller file is <code>sessions_controller.rb</code> and the code is as follows:</p>
  
  <pre><code>class SessionsController &lt; ApplicationController
    def new
    end
  
    def create
      user = User.authenticate(params[:email], params[:password])
      if user
        session[:user_id] = user.id
        redirect_to root_url, :notice =&gt; 'Logged In!'
      else
        flash.now.alert = 'Invalid email or password'
        render 'new'
      end
    end
  
    def destroy
      session[:user_id] = nil
      redirect_to root_url, :notice =&gt; 'Logged Out!'
    end
  end
  </code></pre>
  
  <p>routes.rb file:</p>
  
  <pre><code>Albumtracker::Application.routes.draw do
    get "login" =&gt; "sessions/new", :as =&gt; "login"
    get "logout" =&gt; "sessions/destroy", :as =&gt; "logout"
  
    get "signup" =&gt; "users/new", :as =&gt; "sign_up"
  
    root :to =&gt; 'users#new'
  
    resources :users
    resources :sessions
  
    get "pages/index"
  end
  </code></pre>
  
  <p>sessions/new view file:</p>
  
  <pre><code>&lt;h1&gt;Log in&lt;/h1&gt;
  
  &lt;%= form_tag sessions_path do %&gt;
    &lt;p&gt;
    &lt;%= label_tag :email %&gt;&lt;br /&gt;
    &lt;%= text_field_tag :email, params[:email] %&gt;
    &lt;/p&gt;
    &lt;p&gt;
    &lt;%= label_tag :password %&gt;&lt;br /&gt;
    &lt;%= password_field_tag :password %&gt;
    &lt;/p&gt;
    &lt;p class="button"&gt;&lt;%= submit_tag "Log in" %&gt;&lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>