title: Two routes with multiple parameters to single controller's method?
body: <p>Let's assume I have models: <code>Article</code>, <code>Post</code>, and <code>Comment</code>. For these models I need to map <code>CommentsController#show</code> in <code>articles</code> and <code>posts</code>. Something like this:</p>
  
  <pre><code>resources :articles do
    resources :comments, :only =&gt; [:show]
  end
  
  resources :posts do
    resources :comments, :only =&gt; [:show]
  end
  </code></pre>
  
  <p>And this works perfectly, i.e. it'll generate routes something like this:</p>
  
  <pre><code>/articles/:article_id/comments/:id
  /posts/:post_id/comments/:id
  </code></pre>
  
  <p>Both pointing to the same controller's single method: <code>CommentsController#show</code></p>
  
  <p>What I need is to include more/multiple parameters for posts while retaining the same URL routes to <code>CommentsController</code>:</p>
  
  <pre><code>/articles/:article_id/comments/:id
  /posts/:post_id/:post_title/:post_year/comments/:id
  </code></pre>
  
  <p>I tried <code>match</code> but first occurrence at <code>resources :articles do...</code> overrides it. </p>
  
  <pre><code>resources :articles do
    resources :comments, :only =&gt; [:show]
  end
  match '/posts/:post_id/:post_title/:post_year/comments/:id', :to =&gt; 'comments#show', :as =&gt; :show_post_comments
  </code></pre>
  
  <p>It throws an error:</p>
  
  <blockquote>
    <p>No route matches {:controller=>"comments", :action=>"show",
    :post_id=>10, :post_title=>"some title", :post_year=>"1995", :id=>"1"}</p>
  </blockquote>
  
  <p>So, is it possible to create such a route with multiple parameters to single controller's method in two resources using <code>get</code> or something? </p>