title: Rails: Override RESTful paths?
body: <p>Is it possible to override a RESTful path?</p>
  
  <p>For instance, I have <code>photo_path(photo)</code> which would generate <code>/photos/12345</code></p>
  
  <p>But I'd like for all uses of <code>photo_path</code> to actually generate URL's like <code>/photos/joeschmoe/12345</code> (which is the photo's user and the photo id).</p>
  
  <p>Obviously I could just create a new route, but wanted to make sure there wasn't a more RESTful way of doing it.</p>