Removed hard coded links from mailer and views.
* Not tested every mail template. Hopefully everything works ;-)
This commit is contained in:
parent
2c1952d625
commit
f49c6493f4
9 changed files with 25 additions and 11 deletions
|
|
@ -5,6 +5,12 @@ development: &defaults
|
|||
# Don't forget to setup databases for each foodcoop. See also MULTI_COOP_INSTALL
|
||||
multi_coop_install: false
|
||||
|
||||
# http config for this host
|
||||
# Required for action mailer
|
||||
protocol: http
|
||||
host: localhost
|
||||
port: 3000
|
||||
|
||||
# name of this foodcoop
|
||||
name: FC Test
|
||||
# foodcoop contact information (used for FAX messages)
|
||||
|
|
|
|||
|
|
@ -17,6 +17,13 @@ end
|
|||
# Initial load the default config and database from rails environment
|
||||
Foodsoft.env = RAILS_ENV
|
||||
|
||||
# Set action mailer default host for url generating
|
||||
ActionMailer::Base.default_url_options = {
|
||||
:host => Foodsoft.config[:host],
|
||||
:port => Foodsoft.config[:port],
|
||||
:protocol => Foodsoft.config[:protocol]
|
||||
}
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/foodsoft.yaml
|
||||
ExceptionNotifier.exception_recipients = Foodsoft.config[:notification]['error_recipients']
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.root :controller => 'home', :action => 'index'
|
||||
|
||||
# User specific
|
||||
map.login "/login", :controller => 'login', :action => 'login'
|
||||
map.logout '/logout', :controller => 'login', :action => 'logout'
|
||||
map.my_profile '/home/profile', :controller => 'home', :action => 'profile'
|
||||
map.my_ordergroup '/home/ordergroup', :controller => 'home', :action => 'ordergroup'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue