Grouping Non-Resourceful routes in Rails 5 -
i have 2 routes this:
get '/quotation/cep_validator', to: 'quotation#cep_validator' '/quotation/price', to: 'quotation#price'
they not restful can see both habe same beginning in url , same controller.
is there way group them together, similar resource routes?
route :quotation 'cep_validator' 'price' end
try this:
resource :quotation, only: [] collection :cep_validator :price end end
hope you.
Comments
Post a Comment