2013-02-20 35 views

回答

4

如果你希望它们都成为/shopshop/1等,然后做:

resources :shops, path: "shop" 

否则也许你可以做

resources :shops, except: :show 
# then 
resources :shops, only: :show, path: "shop" 
# or 
get "shop/:id", to: "shops#show", as: :shop