Created
April 19, 2020 16:23
-
-
Save MittalPatel-BTC/907165b6e11a9076b0360af06bfca1b6 to your computer and use it in GitHub Desktop.
Below is the method of defining routes without CRUD using only 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, only: [] 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