Ruby Forum Ruby on Rails > Mail problem Please help

Posted by Ank Ag (ankit2584)
on 23.03.2008 12:45
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.
Posted by Rails Terrorist (malioboro)
on 08.04.2008 08:51
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.

1. check your /config/environment.rb and make sure u have written at the 
bottom line --> require 'action_mailer/ar_mailer'

2. 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

3. 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.

4. re install your gem of ar_mailer


Enjoy,
Reinhart
{+_+} http://teapoci.blogspot.com