Last active
August 31, 2017 20:16
-
-
Save zarkomilosevic/1c297c33197ee83267332559e8d5cdbc to your computer and use it in GitHub Desktop.
todomvc rails CRUD routes
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
Rails.application.routes.draw do | |
root 'todos#index' | |
resources :todos, only: [:index, :create, :update, :destroy] do | |
member do | |
put :toggle | |
end | |
collection do | |
put :toggle_all | |
get :get_all | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/rubydonkey/flux-todomvc-rails-51/blob/CRUD/config/routes.rb