title: Rails 4 routing - No route matches
body: <p>I have some troubles with routes in Rails 4 (rusty Rails user). I have the following routes for my Session controller:</p>
  
  <pre><code>controller :sessions do
    get 'login' =&gt; :new
    post 'login' =&gt; :create
    delete 'logout' =&gt; :destroy
  end
  
  get "sessions/create"
  get "sessions/destroy"
  </code></pre>
  
  <p>And I have a form that looks like this:</p>
  
  <pre><code>= form_tag do
    .form_container
      .field
        = label_tag :name, "Namn:"
        = text_field_tag :name, params[:name]
      .field
        = label_tag :password, "Lösenord:"
        = password_field_tag :password, params[:password]
      .actions
        = submit_tag 'Login', :class =&gt; "submit_button"
  </code></pre>
  
  <p>And my session#create action looks like this:</p>
  
  <pre><code>def create
    user = User.find_by(name: params[:name])
    if user and user.authenticate(params[:password])
      session[:user_id] = user.id
      redirect_to  root_path
    else 
      redirect_to login_url, alert: "Invalid user/password combination"
    end
  end
  </code></pre>
  
  <p>And I get the following error:</p>
  
  <pre><code>No route matches [POST] "/login/create"
  </code></pre>
  
  <p>How should my routes look in this case? </p>