Actions
Defect #11284
closedEmail missing route after change home route
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
I want to have the project list as the home page for my redmine site, so I changed the following in routes.rb from
root :to => 'welcome#index', :as => 'home'
to
root :to => 'projects#index', :as => 'home'
However, now email notification is not working. When I attempt to send a test-email I get the following error:
An error occurred while sending mail (No route matches {:controller=>"welcome"})
Any help would be greatly appreciated.
Updated by Lukasz Gromanowski over 12 years ago
Please check if code below is working for you (it's working for me)
# Just add this below 'root :to=> ...' line match '/', :to => 'welcome#index', :as => 'home'
Updated by Sølve Monteiro over 12 years ago
- Status changed from New to Resolved
Thank you very much, this worked!
Updated by Jan Niggemann (redmine.org team member) almost 12 years ago
- Status changed from Resolved to Closed
- Resolution set to Fixed
Updated by Brian Kirkpatrick over 9 years ago
If you are implementing this solution with a more recent version of Redmine (or Rails, specifically), it appears that you will need to replace the ":as" option with a "via" argument (per http://guides.rubyonrails.org/routing.html):
# Just add this below 'root :to=> ...' line match '/', :to => 'welcome#index', via: :all
Actions