title: No route matches - after login attempt - even though the route exists?
body: <p>I am working on a rails application and added a simple login system according to a book.</p>
  
  <p>I created the controller admin: 
  rails generate controller admin login logout index</p>
  
  <p>It added the following routes to routes.db</p>
  
  <pre><code>  get "admin/login"
    get "admin/logout"
    get "admin/index"
  </code></pre>
  
  <ol>
  <li>I can got to <a href="http://localhost:3000/admin/login" rel="nofollow">http://localhost:3000/admin/login</a> there is no problem at all. </li>
  <li>But when I try to login I get: No route matches "/admin/login"! </li>
  </ol>
  
  <p>Now, the first confusing part is that the "login" method of my AdminController is not executed at all.</p>
  
  <p>The second confusing part is that this code works like a charm - redirects everything to /admin/login:</p>
  
  <pre><code>  def authorize
      unless User.find_by_id(session[:user_id]) 
        flash[:notice] = "you need to login" 
        redirect_to :controller =&gt; 'admin', :action =&gt; 'login'
      end
    end
  </code></pre>
  
  <p>Sidenotes:</p>
  
  <ul>
  <li>I restarted the server several times. </li>
  <li>I tried a different browser - to be sure there is no caching problem.</li>
  </ul>