title: Using generated paths with resources in Rails
body: <p>I have following routes defined:</p>
  
  <pre><code>CyberTrackRails3::Application.routes.draw do
    scope "(:locale)", :locale =&gt; /en|de|nl/ do
      resources :login do
        get 'index', on: :collection
        get 'check', on: :collection
      end
    end
  end
  </code></pre>
  
  <p>Now, url_for(:controller => 'login', :action => 'check'), gives me the correct url, en/login/check. </p>
  
  <p>Using login_check_path however doesn't work. How do I make this work?</p>
  
  <p>I've tried replacing <strong>get 'index', on: :collection</strong> with <strong>match 'check' => 'check'</strong> but that doesn't work. Neither does <strong>match 'check' => 'login#check'</strong>.</p>