[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby Paypal library uninitialized constant error

James Sturrock

8/14/2007 10:22:00 PM

I'm trying to use the paypal library for ruby but im getting an error on
the ipn callback method.

im getting the error:
NameError (uninitialized constant Paypal::Notification::Money):
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in
`const_missing'

I think it originates at this line of code:
logger.info("paypal amount=#{notify.amount.to_s}")

I have setup the helpers in the ApplicationHelper
require 'paypal'
module ApplicationHelper
include Paypal::Helpers


Has anybody else had this problem?

Thanks,
James
--
Posted via http://www.ruby-....

1 Answer

James Sturrock

8/15/2007 2:30:00 PM

0

i managed to fix this by adding require 'money' into the
applicationhelper file.

It worked fine for a while but all of a suddent the entire paypal gem
has stopped working

"undefined local variable or method `paypal_form_tag' for
#<#<Class:0xb7719f00>:0xb7719ec4>"

--
Posted via http://www.ruby-....