title: Devise no route matches sessions/users?
body: <p>Im setting up Devise authentication with my rails 3 project and when i click the sign in button, it displays :</p>
  
  <pre><code>No route matches "/session/user"
  </code></pre>
  
  <p>No matter if I use valid credentials or not..</p>
  
  <p>Heres my form for devise (which i did NOT edit from the defaults)</p>
  
  <pre><code>&lt;%= form_for(resource, :as =&gt; resource_name, :url =&gt; session_path(resource_name), :html =&gt; {:novalidate =&gt; 'novalidate'}) do |f| %&gt;
  </code></pre>
  
  <p>Any suggestions? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Routes.rb</p>
  
  <pre><code>SpecimenTracker::Application.routes.draw do
    devise_for :users
  
    resources :users
  resources :results
    resources :session
  match "/results/show" =&gt; "results#show"
  match "/messages/show" =&gt; "messages#show"
  match "/login/index" =&gt; "login#index"
  match "/login/authenticate" =&gt; "login#authenticate"
    # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  get 'home/index'
  root :to =&gt; 'home#index'
    # See how all your routes lay out with "rake routes"
  
    # Install the default routes as the lowest priority.
    # Note: These default routes make all actions in every controller accessible via GET requests. You should
    # consider removing the them or commenting them out if you're using named routes and resources.
  end
  </code></pre>
  
  <p>Gemfile (only parts i added for devise)</p>
  
  <pre><code>gem 'net-ldap'
  
  gem "devise", "~&gt; 1.4"
  gem "devise_ldap_authenticatable"
  
  
  gem 'hpricot'
  gem 'ruby_parser'
  </code></pre>
  
  <p>Output of rake routes (All the session on the bottom are from an old authentication system i tried using but then dumped. Shouldnt affect anything.. right? )</p>
  
  <pre><code>  new_user_session GET    /users/sign_in(.:format)      {:controller=&gt;"devise/sessions", :action=&gt;"new"}
          user_session POST   /users/sign_in(.:format)      {:controller=&gt;"devise/sessions", :action=&gt;"create"}
  destroy_user_session DELETE /users/sign_out(.:format)     {:controller=&gt;"devise/sessions", :action=&gt;"destroy"}
                 users GET    /users(.:format)              {:controller=&gt;"users", :action=&gt;"index"}
                       POST   /users(.:format)              {:controller=&gt;"users", :action=&gt;"create"}
              new_user GET    /users/new(.:format)          {:controller=&gt;"users", :action=&gt;"new"}
             edit_user GET    /users/:id/edit(.:format)     {:controller=&gt;"users", :action=&gt;"edit"}
                  user GET    /users/:id(.:format)          {:controller=&gt;"users", :action=&gt;"show"}
                       PUT    /users/:id(.:format)          {:controller=&gt;"users", :action=&gt;"update"}
                       DELETE /users/:id(.:format)          {:controller=&gt;"users", :action=&gt;"destroy"}
               results GET    /results(.:format)            {:controller=&gt;"results", :action=&gt;"index"}
                       POST   /results(.:format)            {:controller=&gt;"results", :action=&gt;"create"}
            new_result GET    /results/new(.:format)        {:controller=&gt;"results", :action=&gt;"new"}
           edit_result GET    /results/:id/edit(.:format)   {:controller=&gt;"results", :action=&gt;"edit"}
                result GET    /results/:id(.:format)        {:controller=&gt;"results", :action=&gt;"show"}
                       PUT    /results/:id(.:format)        {:controller=&gt;"results", :action=&gt;"update"}
                       DELETE /results/:id(.:format)        {:controller=&gt;"results", :action=&gt;"destroy"}
         session_index GET    /session(.:format)            {:controller=&gt;"session", :action=&gt;"index"}
                       POST   /session(.:format)            {:controller=&gt;"session", :action=&gt;"create"}
           new_session GET    /session/new(.:format)        {:controller=&gt;"session", :action=&gt;"new"}
          edit_session GET    /session/:id/edit(.:format)   {:controller=&gt;"session", :action=&gt;"edit"}
               session GET    /session/:id(.:format)        {:controller=&gt;"session", :action=&gt;"show"}
                       PUT    /session/:id(.:format)        {:controller=&gt;"session", :action=&gt;"update"}
                       DELETE /session/:id(.:format)        {:controller=&gt;"session", :action=&gt;"destroy"}
          results_show        /results/show(.:format)       {:controller=&gt;"results", :action=&gt;"show"}
         messages_show        /messages/show(.:format)      {:controller=&gt;"messages", :action=&gt;"show"}
           login_index        /login/index(.:format)        {:controller=&gt;"login", :action=&gt;"index"}
    login_authenticate        /login/authenticate(.:format) {:controller=&gt;"login", :action=&gt;"authenticate"}
            home_index GET    /home/index(.:format)         {:controller=&gt;"home", :action=&gt;"index"}
                  root        /(.:format)                   {:controller=&gt;"home", :action=&gt;"index"}
  </code></pre>