Use double quotes in config/routes

This commit is contained in:
Julian Herrero
2019-03-15 09:27:59 +01:00
parent a8d8d2cdf9
commit 8510624692
10 changed files with 47 additions and 47 deletions

View File

@@ -15,14 +15,14 @@ resources :budgets, only: [:show, :index] do
end
resource :results, only: :show, controller: "budgets/results"
resource :executions, only: :show, controller: 'budgets/executions'
resource :executions, only: :show, controller: "budgets/executions"
end
scope '/participatory_budget' do
resources :spending_proposals, only: [:index, :new, :create, :show, :destroy], path: 'investment_projects' do
scope "/participatory_budget" do
resources :spending_proposals, only: [:index, :new, :create, :show, :destroy], path: "investment_projects" do
post :vote, on: :member
end
end
get 'investments/:id/json_data', action: :json_data, controller: 'budgets/investments'
get '/budgets/:budget_id/investments/:id/json_data', action: :json_data, controller: 'budgets/investments'
get "investments/:id/json_data", action: :json_data, controller: "budgets/investments"
get "/budgets/:budget_id/investments/:id/json_data", action: :json_data, controller: "budgets/investments"