mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
Use named routes in controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10981 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user