diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-29 16:16:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-29 16:16:20 +0000 |
commit | c558b8b0a3ca6079af71ab91114fb10fdefd263e (patch) | |
tree | 020dbc6ef097dddae4dbe5229af87a4554bcfb1b | |
parent | 97ae34c2619e0b36d66dbfbc9e4b57a3b3bee83d (diff) | |
download | redmine-c558b8b0a3ca6079af71ab91114fb10fdefd263e.tar.gz redmine-c558b8b0a3ca6079af71ab91114fb10fdefd263e.zip |
Adds a named route for test email.
git-svn-id: http://svn.redmine.org/redmine/trunk@14391 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/settings/_notifications.html.erb | 2 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erb index 59a30a9a8..e75a2014f 100644 --- a/app/views/settings/_notifications.html.erb +++ b/app/views/settings/_notifications.html.erb @@ -30,7 +30,7 @@ </fieldset> <div style="float:right;"> -<%= link_to l(:label_send_test_email), { :controller => 'admin', :action => 'test_email' }, :method => :post %> +<%= link_to l(:label_send_test_email), test_email_path, :method => :post %> </div> <%= submit_tag l(:button_save) %> diff --git a/config/routes.rb b/config/routes.rb index 5b6783a6b..1fc5bebb3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -324,7 +324,7 @@ Rails.application.routes.draw do get 'admin/projects', :to => 'admin#projects' get 'admin/plugins', :to => 'admin#plugins' get 'admin/info', :to => 'admin#info' - post 'admin/test_email', :to => 'admin#test_email' + post 'admin/test_email', :to => 'admin#test_email', :as => 'test_email' post 'admin/default_configuration', :to => 'admin#default_configuration' resources :auth_sources do |