Archive for the 'Ruby on Rails' Category
Uninitialized ActionMailer
While migrating a Ruby on Rails application to a new server I found my application throwing an unitialized ActionMailer error on server start.
./script/../config/../config/environment.rb:29:NameError
uninitialized constant ActionMailer
I thought this was strange – as the ActionMailer gem was installed fine.
The original system was running fcgi through Apache and on this server I was using Mongrel server.
http://highearthorbit.com/uninitialized-constant-actionmailer/
Turns out the ActionMailer server settings need to be outside the block
Rails::Initializer.run do |config|
..it fixed the problem for me.
1 comment