Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Created October 10, 2012 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidakatsuya/3864401 to your computer and use it in GitHub Desktop.
Save hidakatsuya/3864401 to your computer and use it in GitHub Desktop.
Add routing to #destroy_all action in resources
Tasks::Application.routes.draw do
resources :tasks to
match '/', on: :collection, via: :delete, action: 'destroy_all'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment