Redirect admin to budget lists after editing a budget
This commit is contained in:
@@ -27,7 +27,7 @@ class Admin::BudgetsController < Admin::BaseController
|
|||||||
|
|
||||||
def update
|
def update
|
||||||
if @budget.update(budget_params)
|
if @budget.update(budget_params)
|
||||||
redirect_to admin_budget_path(@budget), notice: t('admin.budgets.update.notice')
|
redirect_to admin_budgets_path, notice: t('admin.budgets.update.notice')
|
||||||
else
|
else
|
||||||
render :edit
|
render :edit
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user