fixes investment back link to avoid pointing to /new action

This commit is contained in:
Juanjo Bazán
2017-01-11 13:02:46 +01:00
parent dd268c18d7
commit b4b8e4f787

View File

@@ -2,10 +2,7 @@
<div class="row">
<div class="small-12 medium-9 column">
<%= link_to :back, class: "back" do %>
<span class="icon-angle-left"></span>
<%= t("shared.back") %>
<% end %>
<%= back_link_to budget_investments_path(investment.budget) %>
<h1><%= investment.title %></h1>
@@ -35,7 +32,7 @@
</p>
<% end %>
<%= render 'shared/tags', taggable: @investment %>
<%= render 'shared/tags', taggable: investment %>
<%= safe_html_with_links investment.description.html_safe %>