Lee,
Do you need to have a require statement in environment.rb?
require ''active_merchant''
Al
On Feb 9, 4:19 pm, Lee Munroe
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi,
>
> Everything was working fine until I went to use ActiveMerchant.
> Have spent a few hours trying to figure this out with no success.
>
> Here''s the error I''m getting
>
> ** Starting Rails with development environment...
> Exiting
>
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in
> `load_missing_constant'': uninitialized constant ActiveMerchant
> (NameError)
>
> And in environment.rb I have
>
> unless RAILS_ENV == ''production''
> PAYPAL_ACCOUNT =
''sandboxacco...-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''
> ActiveMerchant::Billing::Base.mode = :test
> else
> PAYPAL_ACCOUNT =
''paypalacco...-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''
> end
>
> Appreciate anyone kind enough to help me out. Can''t get my head
around
> this and holding me back.
>
> Cheers
> --
> Posted viahttp://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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---