Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Created April 19, 2020 16:23
Show Gist options
  • Save MittalPatel-BTC/907165b6e11a9076b0360af06bfca1b6 to your computer and use it in GitHub Desktop.
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.
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