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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -