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

@@ -1,6 +1,6 @@
<main>
<span class="not-print">
<%= render 'admin/shared/budget_investment_search', url: management_budgets_investments_path %>
<%= render 'admin/shared/budget_investment_search', url: management_budget_investments_path %>
</span>
<div class="wrap row">

View File

@@ -7,7 +7,7 @@
<div class="small-12 medium-9 column end">
<h1 class=""><%= t("management.budget_investments.create") %></h1>
<%= form_for(@investment, url: management_budgets_investments_path, method: :post) do |f| %>
<%= form_for(@investment, url: management_budget_investments_path(@budget), method: :post) do |f| %>
<%= render 'shared/errors', resource: @investment %>
<div class="row">

View File

@@ -3,7 +3,7 @@
<div id="budget-investments" class="budget-investments-list small-12 column">
<div class="not-print">
<%= form_tag print_management_budgets_investments_path, method: :get, enforce_utf8: false do %>
<%= form_tag print_management_budget_investments_path, method: :get, enforce_utf8: false do %>
<div class="small-12 medium-4 column float-left">
<%= select_tag :geozone,
options_for_select(geozone_select_options.unshift([t("geozones.none"), "all"]), params[:geozone]),