diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 17:51:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 17:51:30 +0000 |
commit | 0b9609468094fdb99ea9e0b68677dd178f85538c (patch) | |
tree | 736718d4e4684810e593863cfa051ac1a6a68251 /app/controllers/admin_controller.rb | |
parent | cf66561b1ef5f80360588bc4e4691bf464cd88fc (diff) | |
download | redmine-0b9609468094fdb99ea9e0b68677dd178f85538c.tar.gz redmine-0b9609468094fdb99ea9e0b68677dd178f85538c.zip |
Use named routes in controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10981 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a7a1b9a14..fd9cfccee 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -54,7 +54,7 @@ class AdminController < ApplicationController flash[:error] = l(:error_can_t_load_default_data, e.message) end end - redirect_to :action => 'index' + redirect_to admin_path end def test_email @@ -68,7 +68,7 @@ class AdminController < ApplicationController flash[:error] = l(:notice_email_error, e.message) end ActionMailer::Base.raise_delivery_errors = raise_delivery_errors - redirect_to :controller => 'settings', :action => 'edit', :tab => 'notifications' + redirect_to settings_path(:tab => 'notifications') end def info |