On Wed, Jul 2, 2008 at 4:52 AM, phil <ph...@philsmy.com> wrote:
>
> I just reinstalled AM and I'm getting this error when trying to write
> a new gateway:
>
> 1 - svn checkout http://activemerchant.googlecode.com/svn/trunk/active_merchant
> (installs correctly)
>
> 2 - sudo gem install rubigen
> Successfully installed rubigen-1.3.2
> 1 gem installed
> Installing ri documentation for rubigen-1.3.2...
> Installing RDoc documentation for rubigen-1.3.2...
>
>
> 3 - script/generate gateway Chronopay
> uninitialized constant RubiGen
>
> Of course there is no documentation, there is a bug listed (101) and
> it is marked as invalid! Looks pretty valid to me!
You are incorrectly using the generator from your Rails directory.
This generator is a tool used to generate new gateway implementations
within ActiveMerchant. I will see if I can modify the use of Rubigen
to work from the rails root directory, but this isn't really a high
priority.
> If I add
> require 'rubigen'
>
> to the top of gateway_generator.rb
>
> I end up with another error:
> Missing GatewayGenerator class in ./vendor/plugins/active_merchant/
> generators/gateway/gateway_generator.rb
>
> That is because I have a line before the class declaration I guess
>
> I even tried putting the require in script/generate and still nothing.
>
> Does this software actually work for anything other than paypal and
> authorized.net?????
All of the gateways are in production use in Shopify.
> >
>
--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails
--