Created
November 29, 2011 17:46
-
-
Save akinsgre/1405687 to your computer and use it in GitHub Desktop.
Trouble getting routes & link_to working
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
routes.rb | |
================= | |
resources :groups do | |
member do | |
post 'join' | |
put 'add_contact' | |
end | |
end | |
When I do "bundle exec rake routes" I get "add_contact_group" -> /groups/:id/add_contact | |
I'd like to have /groups/:id/add_contact/:id | |
so I can pass both group and contact to the add_contact action. | |
Any hints? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment