Passing parameter to controller action through routes [duplicate]
问题 This question already has answers here : Closed 7 years ago . 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