lundi 24 juillet 2017

can i combine two routes into one for same controller

I have two routes for two actions in same controller as below. is this the right way or is there a way to call them together since they are in same controller?

resources :abc, only: [] do
get 'help', controller: 'my_controller', on: :collection
get 'update', controller: 'my_controller', on: :collection

Aucun commentaire:

Enregistrer un commentaire