title: Rails: Nested Resources routes not working
body: <p>I have the following routes defined:</p>
  
  <pre><code>resources :employees do
    resources :questions
    member do
      get :results
    end
  end
  </code></pre>
  
  <p>One of the routes (rake routes) for the above resources prints this:</p>
  
  <p><code>new_employee_question GET  /employees/:employee_id/questions/new(.:format)  questions#new</code></p>
  
  <p>But when I do this <code>= link_to 'New Question', :new_employee_question</code></p>
  
  <p>I get the following error:</p>
  
  <p><code>No route matches {:action=&gt;"new", :controller=&gt;"questions"}</code></p>
  
  <p>I have both <code>QuestionsController</code> &amp; <code>EmployeesController</code> defined with the required action methods.</p>
  
  <p>I also tried the following in rails console:</p>
  
  <p><code>Rails.application.routes.recognize_path(app.new_employee_question_path)</code></p>
  
  <p>...which generates the following error:</p>
  
  <p><code>ActionController::RoutingError: No route matches {:controller=&gt;"questions"}</code></p>
  
  <p>I am using Rails <code>3.2.6</code>. Is there something I am doing wrong?</p>