title: custom routes not work when defined as "member" in rails 3.2 resources
body: <p>We need to define 4 custom actions in rails 3.2 app. Those 4 actions take care of creating and edit customer login. In routes.rb, here was addition to routes.rb:</p>
  
  <pre><code>member do
    get :new_customer_login
    put :create_customer_login
    get :edit_customer_login
    put :update_customer_login   
  end
  </code></pre>
  
  <p><code>rake routes</code> shows the correct route:  </p>
  
  <pre><code> new_customer_login_user GET    /users/:id/new_customer_login(.:format)        authentify/users#new_customer_login
  create_customer_login_user PUT    /users/:id/create_customer_login(.:format)     authentify/users#create_customer_login
     edit_cutomer_login_user GET    /users/:id/edit_cutomer_login(.:format)        authentify/users#edit_cutomer_login
  update_customer_login_user PUT    /users/:id/update_customer_login(.:format)     authentify/users#update_customer_login
  </code></pre>
  
  <p>However when we fired up the spec and there is an no route error:</p>
  
  <pre><code>No route matches {:action=&gt;"new_customer_login", :controller=&gt;"authentify/users"}
  </code></pre>
  
  <p>What we did was to change the <code>member</code> to <code>collection</code> in routes.rb:</p>
  
  <pre><code>collection do
    get :new_customer_login
    put :create_customer_login
    get :edit_customer_login
    put :update_customer_login   
  end
  </code></pre>
  
  <p>Amazingly, the <code>no route</code> error disappeared and the debug hits the <code>new_customer_login</code> defined successfully.  We have no clue why <code>collection</code> instead of <code>member</code> routes work. Those 4 actions are really working on a single record. Can someone provide reasoning why collection but not member works here and how to fix?</p>