Hi,
I am trying to use ar_mailer to send mail. But when i start ar_sendmail
i get the following error:
Unhandled exception uninitialized constant
ActionMailer::ARMailer(NameError):
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/de
pendencies.rb:263:in `load_missing_constant’
Please Help.
Thank you.
Ank Ag wrote:
Hi,
I am trying to use ar_mailer to send mail. But when i start ar_sendmail
i get the following error:
Unhandled exception uninitialized constant
ActionMailer::ARMailer(NameError):
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/de
pendencies.rb:263:in `load_missing_constant’
Please Help.
Thank you.
-
check your /config/environment.rb and make sure u have written at the
bottom line → require ‘action_mailer/ar_mailer’
-
Ensure that you have written it at the bottom line of
/config/environment/development.rb → :
config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :activerecord
-
if still happened, re-generate your mailer → script/mailer
bla…bla…bla, please make sure the old folder and file are already
renamed to another folder so it will not replace your old files.
-
re install your gem of ar_mailer
Enjoy,
Reinhart
{+_+} http://teapoci.blogspot.com