Staging copy. The live site is highearthorbit.com.

Apr 26, 2006 · Technology

uninitialized constant ActionMailer

A word to the wise of rails developers. Hopefully this makes it to Google search, because when I looked it up, there wasn't an answer.

If you're configuring ActionMailer and you try to run the console and get the following messages:

[host]$ script/console
Loading development environment.
./script/../config/../config/environment.rb:41:NameError:
uninitialized constant ActionMailer
/home/highearth/.gems/gems/actionpack-1.12.1/lib/action_controller/integration.rb:15:
NameError: uninitialized constant ActionController::Integration::Session::Test
./script/../config/../config/../app/controllers/application.rb:3:
NameError: uninitialized constant ActionController::Base


Make sure your ActionMailer configuration in your config/environment.rb file is after your Rails::Initializer.run do |config| block.

Technology · Programming · Open-Source · Ruby · Rails