Created
September 26, 2012 11:09
-
-
Save doublemarked/3787388 to your computer and use it in GitHub Desktop.
Rails parameter naming discrepancy
This file contains hidden or 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
Kombucha:delme$ rake routes | |
snack_eat GET /snacks/:snack_id/eat(.:format) snacks#eat | |
snacks GET /snacks(.:format) snacks#index | |
POST /snacks(.:format) snacks#create | |
new_snack GET /snacks/new(.:format) snacks#new | |
edit_snack GET /snacks/:id/edit(.:format) snacks#edit | |
snack GET /snacks/:id(.:format) snacks#show | |
PUT /snacks/:id(.:format) snacks#update | |
DELETE /snacks/:id(.:format) snacks#destroy |
This file contains hidden or 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
Delme::Application.routes.draw do | |
resources :snacks do | |
get 'eat' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment