uninitialized constant RubiGen

0 views
Skip to first unread message

phil

unread,
Jul 2, 2008, 4:52:01 AM7/2/08
to Active Merchant
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!

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?????

Cody Fauser

unread,
Jul 2, 2008, 6:51:32 AM7/2/08
to activem...@googlegroups.com
Phil,

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

phil

unread,
Jul 2, 2008, 7:34:56 AM7/2/08
to Active Merchant
Thanks Cody.... so where do I run it from!? ./vendor/plugins/
active_merchant?

On Jul 2, 12:51 pm, "Cody Fauser" <codyfau...@gmail.com> wrote:
> Phil,
>
>
>
> On Wed, Jul 2, 2008 at 4:52 AM, phil <p...@philsmy.com> wrote:
>
> > I just reinstalled AM and I'm getting this error when trying to write
> > a new gateway:
>
> > 1 - svn checkouthttp://activemerchant.googlecode.com/svn/trunk/active_merchant

Cody Fauser

unread,
Jul 2, 2008, 8:15:51 AM7/2/08
to activem...@googlegroups.com
Yes, run it from the root directory of ActiveMerchant. ActiveMerchant
has its own script/generate file.

--

Reply all
Reply to author
Forward
0 new messages