Skip to content

Instantly share code, notes, and snippets.

@akinsgre
Created November 29, 2011 17:46
Show Gist options
  • Save akinsgre/1405687 to your computer and use it in GitHub Desktop.
Save akinsgre/1405687 to your computer and use it in GitHub Desktop.
Trouble getting routes & link_to working
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