This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in your staging.rb file. Obviously you'll need more config than this it's just an example. | |
Rails.application.configure do | |
config.action_mailer.preview_path ||= defined?(Rails.root) ? "#{Rails.root}/spec/mailers/previews" : nil | |
config.action_mailer.show_previews = true | |
end | |
# Without the following would display "For security purposes, this information is only available to local requests" | |
class ::Rails::MailersController | |
include Rails.application.routes.url_helpers |