title: Passing parameter to controller action through routes
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/12150254/rails-how-do-i-pass-custom-params-to-a-controller-method">Rails: How do I pass custom params to a controller method?</a></p>
  </blockquote>
  
  <p>I am wondering if it possible to pass parameter to controller action through routes. I have a one generic action method which I want to call for various routes. No, I can't use wildcard in my route.</p>
  <pre><code>match '/about' =&gt; 'pages#show'
  match '/terms' =&gt; 'pages#show'
  match '/privacy' =&gt; 'pages#show'
  </code></pre>
  <p>I am looking for something like:</p>
  <pre><code>match '/about' =&gt; 'pages#show', :path =&gt; &quot;about&quot;
  match '/terms' =&gt; 'pages#show', :path =&gt; &quot;terms&quot;
  match '/privacy' =&gt; 'pages#show', :path =&gt; &quot;privacy&quot;
  </code></pre>