I am trying to use the PayPal gem and having a little trouble. I installed the gem w/o any trouble: paypal (1.0.1) Paypal IPN integration library for rails and other web applications When I try to use it in my controller, as follows: def paypal_ipn notify = Paypal::Notification.new(request.raw_post) ... end I get a NameError: uninitialized constant Paypal This error occured while loading the following files: paypal.rb Like it can't find the gem files... I looked and the gem is in place and the files are all intact. Am I doing something wrong? Did I mistype something that I'm missing? I've been going over this but if there is an error in the code, I am blind to it. Any help is appreciated. H
on 2006-01-31 20:18
on 2006-01-31 21:02
In config/environments.rb you need to add: require 'paypal' Joey
on 2006-01-31 21:22
Yeah, just figured that out. Duh. Thanks.