Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby on rails 4.2 how to add GET route

resources :deliveries, controller: 'invoices', only: [:index, :new, :edit] do
  collection do
    get :search
    post :search
  end
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #rails #add #GET #route
ADD COMMENT
Topic
Name
6+5 =