Skip to content

Instantly share code, notes, and snippets.

@gamov
Last active August 29, 2015 14:08
Show Gist options
  • Save gamov/4718054ac76d2742d6b4 to your computer and use it in GitHub Desktop.
Save gamov/4718054ac76d2742d6b4 to your computer and use it in GitHub Desktop.
Custom setting in config.action_mailer
config.action_mailer.host_from_outside= 'url'
config.action_mailer[:host_from_outside]= 'url'
#both triggers:
/Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/deprecated_api.rb:74:in `method_missing': undefined method `host_from_outside=' for ActionMailer::Base:Class (NoMethodError)
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/base.rb:452:in `method_missing'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/railtie.rb:26:in `block (3 levels) in <class:Railtie>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/railtie.rb:26:in `each'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/railtie.rb:26:in `block (2 levels) in <class:Railtie>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/actionmailer-3.0.20/lib/action_mailer/railtie.rb:20:in `block in <class:Railtie>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/initializable.rb:25:in `run'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/initializable.rb:50:in `block in run_initializers'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/initializable.rb:49:in `each'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/initializable.rb:49:in `run_initializers'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/application.rb:134:in `initialize!'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/application.rb:77:in `method_missing'
from /Users/gamov/Projects/Teck Swee/ector/config/environment.rb:9:in `<top (required)>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `block in require'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:597:in `new_constants_in'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `require'
from /Users/gamov/Projects/Teck Swee/ector/config.ru:3:in `block in <main>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/builder.rb:46:in `instance_eval'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/builder.rb:46:in `initialize'
from /Users/gamov/Projects/Teck Swee/ector/config.ru:1:in `new'
from /Users/gamov/Projects/Teck Swee/ector/config.ru:1:in `<main>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/builder.rb:35:in `eval'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/builder.rb:35:in `parse_file'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/server.rb:162:in `app'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/server.rb:253:in `wrapped_app'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/rack-1.2.8/lib/rack/server.rb:204:in `start'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/commands/server.rb:65:in `start'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/commands.rb:30:in `block in <top (required)>'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/commands.rb:27:in `tap'
from /Users/gamov/.rvm/gems/ruby-1.9.3-p545@ector/gems/railties-3.0.20/lib/rails/commands.rb:27:in `<top (required)>'
from /Users/gamov/Projects/Teck Swee/ector/script/rails:6:in `require'
from /Users/gamov/Projects/Teck Swee/ector/script/rails:6:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment