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

@@ -10,6 +10,12 @@
class: 'button hollow float-right' %>
<% end %>
<% if author_of?(investment, current_user) %>
<%= link_to t("budgets.investments.show.edit_image"),
edit_image_budget_investment_path(investment.budget, investment),
class: 'button hollow float-right' %>
<% end %>
<h1><%= investment.title %></h1>
<div class="budget-investment-info">