diff --git a/config/routes.rb b/config/routes.rb index 90decfb7e..6a90ddd2a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -286,9 +286,11 @@ Rails.application.routes.draw do get :print, on: :collection end - resources :budget_investments, only: [:index, :new, :create, :show] do - post :vote, on: :member - get :print, on: :collection + namespace :budgets do + resources :investments, only: [:index, :new, :create, :show] do + post :vote, on: :member + get :print, on: :collection + end end end