Rails - good practice to specify the action available for a resource?
Are there any benefits to specify only the routes available in the
routes.rb like:
resources :users, only: [:new, :create]
Instead of leaving out the actions even if there are no views on action
method in the the controller, like:
resources :users
If it's a good practice, what are the benefits?
No comments:
Post a Comment