# Gems, helpers and rails

**URL:** <https://www.ruby-forum.com/t/gems-helpers-and-rails/102240>\
**Category:** Ruby\
**Created:** [August 13, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240 "2006-08-13T20:55:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@ghost](https://www.ruby-forum.com/u/ghost)\
**Post date:** [August 13, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240/1 "2006-08-13T20:55:52Z")

</div>

Hi i’m trying to get the paypal library working in my rails app. I know  
this is the ruby forum but i think this might be half a ruby question. I  
installed the paypal gem.

$ gem list

\*\*\* LOCAL GEMS \*\*\*

##rails ones + others##

money (1.7.1)  
Class aiding in the handling of Money.

paypal (2.0.0)  
Paypal IPN integration library for rails and other web applications  
#############

irb(main):001:0\> require ‘rubygems’  
=\> true  
irb(main):002:0\> require ‘paypal’  
=\> false  
irb(main):003:0\> include Paypal  
NameError: uninitialized constant Paypal  
from (irb):3  
irb(main):004:0\> include paypal  
NameError: undefined local variable or method `paypal’ for  
#Object:0xb7cdd970  
from (irb):4

when i try and use the form helpers in rails  
specifically the code below taken from the RDoc:

\<%= paypal\_form\_tag %\>  
25: \<%= paypal\_setup “Item 500”, Money.us\_dollar(50000),  
“removed\_email\_address@domain.invalid”, :notify\_url =\> url\_for(:only\_path =\> false,  
:action =\> ‘paypal\_ipn’) %\>

if get this error:  
undefined local variable or method `paypal\_form\_tag’ for  
#\<#Class:0xb7692568:0xb7692540\>

Extracted source (around line #24):

21:   
22:   
23:  
24: \<%= paypal\_form\_tag %\>

I have added require ‘paypal’ to the end of my enviroment.rb .  
I have this as my application\_helper.rb

require ‘paypal’  
module ApplicationHelper  
include Paypal::Helpers  
end

I also now get this in my log

ApplicationController: missing default helper path application\_helper

Please give me something else to try.  
I am stumped!  
regards  
c

---

<div class="post-metadata">

**Author:** ![ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@ghost](https://www.ruby-forum.com/u/ghost)\
**Post date:** [August 13, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240/2 "2006-08-13T21:32:31Z")

</div>

okay update

now i get this error

=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server (see config/lighttpd.conf for options)  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__': no such file to load -- net/https (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require' from /home/casparbl/user/V_O_2/public/../config/../vendor/plugins/paypal/lib/paypal.rb:26 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:56:in  
`require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend\_on’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:85:in  
`require_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const\_missing’  
… 11 levels…  
from  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:102:in  
`process' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in `run’  
from  
/home/casparbl/user/V\_O\_2/public/…/config/environment.rb:13  
from /home/casparbl/user/V\_O\_2/public/dispatch.fcgi:21

require ‘net/https’

is the line that it dies on.

ruby 1.8.4 (2005-12-24) [i486-linux]  
Rails 1.1.6

how do i get this ‘net/https’

?

---

<div class="post-metadata">

**Author:** ![ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@ghost](https://www.ruby-forum.com/u/ghost)\
**Post date:** [August 13, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/gems-helpers-and-rails/102240/3 "2006-08-13T21:38:51Z")

</div>

tis all sorted for now

installed libopenssl-ruby1.8 and we seem to be away,

also require ‘money’ in enviroment.tb
