Closed felipefontoura closed 9 years ago
In our best practices we have: https://github.com/internetsistemas/guides/tree/master/best-practices/rubyonrails/controllers#be-restful-as-possible
But in other project were used:
resources :termination_of_contracts, only: [:index, :show] do member do put :fired put :retired put :resignation_request end end
This a good alternative, and should be included in the guides.
Merged to Controller's guides.
In our best practices we have: https://github.com/internetsistemas/guides/tree/master/best-practices/rubyonrails/controllers#be-restful-as-possible
But in other project were used:
This a good alternative, and should be included in the guides.