Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Last active April 19, 2020 16:27
Show Gist options
  • Save MittalPatel-BTC/954dc6251d69e0fe600e54d574a9e950 to your computer and use it in GitHub Desktop.
Save MittalPatel-BTC/954dc6251d69e0fe600e54d574a9e950 to your computer and use it in GitHub Desktop.
Below is the method of defining routes without CRUD action using except block.
resources :users, except: [:new, :create, :edit, :update, :destroy] do
collection do
get 'charge'
get 'refund'
get 'bill'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment