aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-29 14:53:51 +0200
committerAlex Legler <alex@a3li.li>2011-08-29 14:53:51 +0200
commit7dfcba1f30838c35e30f8b1638b37f4368b266b4 (patch)
treef28b386565fdaba9192a7bf17eda155df2b089b6
parentExplicitly request debug messages in the test environment. (diff)
downloadglsamaker-7dfcba1f30838c35e30f8b1638b37f4368b266b4.tar.gz
glsamaker-7dfcba1f30838c35e30f8b1638b37f4368b266b4.tar.bz2
glsamaker-7dfcba1f30838c35e30f8b1638b37f4368b266b4.zip
Admin::TemplatesController: Redirect to correct path after updating
-rw-r--r--app/controllers/admin/templates_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/templates_controller.rb b/app/controllers/admin/templates_controller.rb
index ca1fc8a..52c40f9 100644
--- a/app/controllers/admin/templates_controller.rb
+++ b/app/controllers/admin/templates_controller.rb
@@ -62,7 +62,7 @@ class Admin::TemplatesController < ApplicationController
respond_to do |format|
if @template.update_attributes(params[:template])
- format.html { redirect_to @template, :notice => 'Template was successfully updated.' }
+ format.html { redirect_to admin_template_path(@template), :notice => 'Template was successfully updated.' }
format.json { head :ok }
else
format.html { render :action => "edit" }