Ruby on Rails 4.2 Jak dodać trasę

resources :deliveries, controller: 'invoices', only: [:index, :new, :edit] do
  collection do
    get :search
    post :search
  end
end
Exuberant Emu