title: Rails route to specific action for resource
body: <p>I'm trying to get the url for given params:</p>
  
  <pre><code>url_for({
    :action =&gt; "show",
    :controller =&gt; "questions",
    :dashboard_id =&gt; "123",
    :dashboard_type =&gt; "mono",
    :question_id =&gt; "1234",
    :only_path =&gt; true
  })
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>ActionController::RoutingError: No route matches {:action=&gt;"show", :controller=&gt;"questions", :dashboard_id=&gt;"123", :dashboard_type=&gt;"mono", :question_id=&gt;"1234"}
  </code></pre>
  
  <p>In my <code>routes.rb</code> file, I have this configuration:</p>
  
  <pre><code>resources :dashboards, :only =&gt; [:index, :all, :create] do
    resources :questions, :path =&gt; '/:dashboard_type/questions'
  end
  </code></pre>
  
  <p>What seems to be the problem?</p>