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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---