Last active
April 19, 2020 16:27
-
-
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.
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
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