Forum: Ruby on Rails Server won't start with ActiveMerchant

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
452521c3fd3cbad0609ba4a685feef7c?d=identicon&s=25 Lee Munroe (fonziguy)
on 2009-02-10 01:19
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 = 'sandboxaccount@example.com'
    ActiveMerchant::Billing::Base.mode = :test
  else
    PAYPAL_ACCOUNT = 'paypalaccount@example.com'
  end

Appreciate anyone kind enough to help me out. Can't get my head around
this and holding me back.

Cheers
1128ccdc6b414a39e38f00acca680b8d?d=identicon&s=25 stretch (Guest)
on 2009-02-10 04:28
(Received via mailing list)
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...@andreas-s.net>
This topic is locked and can not be replied to.