Skip to content

Instantly share code, notes, and snippets.

@robertodecurnex
Created November 7, 2012 03:18
Show Gist options
  • Save robertodecurnex/4029392 to your computer and use it in GitHub Desktop.
Save robertodecurnex/4029392 to your computer and use it in GitHub Desktop.
The default routes of a resource do not let you *modify* a resource partially.
MyApp::Application.routes.draw do
resources :users`
end
users GET /users(.:format) users#index
POST /users(.:format) users#create
new_user GET /users/new(.:format) users#new
edit_user GET /users/:id/edit(.:format) users#edit
user GET /users/:id(.:format) users#show
PUT /users/:id(.:format) users#update
DELETE /users/:id(.:format) users#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment