Created
February 25, 2013 10:39
-
-
Save jlebrech/5029023 to your computer and use it in GitHub Desktop.
how to send "/:username" to "show/username" and nest favourites into "/username"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
resources :users do # should map "/:username" to user_controller/show | |
resources :favourites do # should send /:username/favourites, to favourite_controller/index | |
resources :fruit, :cars, :sports, :foods | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment