Yes, run it from the root directory of ActiveMerchant. ActiveMerchant
has its own script/generate file.
On Wed, Jul 2, 2008 at 7:34 AM, phil <p
...@philsmy.com> wrote:
> 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
>> > (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 Fauserhttp://shopify.com- e-commerce done righthttp://www.codyfauser.com- bloghttp://peepcode.com/products/activemerchant-pdf- ActiveMerchant PeepCodehttp://www.oreilly.com/catalog/rjsrails- RJS Templates for Rails