Currently, the photosfollowing routes are installed:
resources :photos
match 'photos/:user' => 'photos#user', :as => :user_photo
match 'photos/:user/:key' => 'photos#show', :as => :show_photo
These two routes matchgive me URLs, for example:
http:
http:
... similar to how Flickr formats URLs.
However, the problem is that the route is photos/:userinterpreted as a method show, or if I put these user routes before resources, then routes such as /neware interpreted as user.
How can I get around this without having to do a ton of custom routes?
source
share