title: Wildcards in default resource routes in Rails 3
body: <p>I have the following routes in my Rails application:</p>
  
  <pre><code>resources :photos
  get "/photos/*id/stats" =&gt; "photos#stats"
  get "/photos/*id/visitors" =&gt; "photos#visitors"
  </code></pre>
  
  <p>The id parameter is a wildcard that should allow special characters like slashes. Basically, "/photos/img/trial.jpg/stats" should route to stats method in photos_controller with photo id as "img/trial.jpg". 
  This part is working correctly.</p>
  
  <p>However, I am not sure how to use wildcard matching for id in the default routes created by "resources :tags", which are basic CRUD routes like "/photos/:id/edit" => "photos#edit".</p>
  
  <p>Is there a cleaner way to use wildcard matching for default resource routes, rather than not use resource routes and specify those routes explicitly?</p>