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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ruby Paypal library uninitialized constant error
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password