Add edit_image and update_image action to budget/investments controller.

This commit is contained in:
Senén Rodero Rodríguez
2017-06-21 12:56:01 +02:00
parent 515d6d7e70
commit acc79cbe31
14 changed files with 167 additions and 3 deletions

View File

@@ -78,7 +78,11 @@ Rails.application.routes.draw do
resources :budgets, only: [:show, :index] do
resources :groups, controller: "budgets/groups", only: [:show]
resources :investments, controller: "budgets/investments", only: [:index, :new, :create, :show, :destroy] do
member { post :vote }
member do
post :vote
get :edit_image
put :update_image
end
collection { get :suggest }
end
resource :ballot, only: :show, controller: "budgets/ballots" do