Requiring AM gem in Rails 2.1

0 views
Skip to first unread message

Marc L

unread,
Jun 6, 2008, 2:26:54 PM6/6/08
to Active Merchant
Hi there,

I've been using AM as a plugin with great success for over a year.
Now I am revamping a site to use Rails 2.1, and I'm looking to use AM
as a gem. To accomplish this, I'm trying to work with the new gem
dependencies functionality. ActiveMerchant is the only gem giving me
problems. Has anyone tried using it this way? Below is the relevant
portion of my environment.rb as it currently stands.

Rails::Initializer.run do |config|
...
config.gem "ActiveMerchant", :lib => "active_merchant"
...
end

The line above, and every variation I can think of, fails to recognize
AM as an installed gem when I run "rake gems". Has anyone run into
this problem before? I'd appreciate any insight the good folks here
can offer.

Thank you!

-Marc

john

unread,
Jun 11, 2008, 11:38:25 AM6/11/08
to Active Merchant
Hi Marc,
I am using AM with rails 2.1.0 I have set it up as a plugin inside of
vendor. I use git submodules to track it via github which works quite
nicely. However I am having a problem with the money 1.7.1 gem when I
require this in via my environment.rb What are your findings?

regards,
St.john
Reply all
Reply to author
Forward
0 new messages