diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erb index 59a30a9..e75a201 100644 --- a/app/views/settings/_notifications.html.erb +++ b/app/views/settings/_notifications.html.erb @@ -30,7 +30,7 @@
-<%= 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 %>
<%= submit_tag l(:button_save) %> diff --git a/config/routes.rb b/config/routes.rb index 5b6783a..1fc5beb 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