Changes routes to use budgets resource instead of namespace

This commit is contained in:
kikito
2016-12-06 18:01:37 +01:00
parent 5538c70931
commit 8ef479bf31
5 changed files with 11 additions and 6 deletions

View File

@@ -286,8 +286,13 @@ Rails.application.routes.draw do
get :print, on: :collection
end
namespace :budgets do
resources :investments, only: [:index, :new, :create, :show] do
resources :budgets, only: :index do
collection do
get :create_investments
get :support_investments
get :print_investments
end
resources :investments, only: [:index, :new, :create, :show], controller: 'budgets/investments' do
post :vote, on: :member
get :print, on: :collection
end