I have this two routes:
get "shopping", to: "bar#show"
get "shopping/*relative_path", to: "bar#show"
How can I join them, to one route?
When I simply omit get "shopping", to: "bar#show"
then the user who goes to localhost:3000/shopping
is not redirected to the controller bar#show
Thanks
Aucun commentaire:
Enregistrer un commentaire