Possible Duplicate:
Rails: How do I pass custom params to a controller method?
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.
match '/about' => 'pages#show'
match '/terms' => 'pages#show'
match '/privacy' => 'pages#show'
I am looking for something like:
match '/about' => 'pages#show', :path => "about"
match '/terms' => 'pages#show', :path => "terms"
match '/privacy' => 'pages#show', :path => "privacy"
Thanks.