Forum: Ruby on Rails Require not working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2007-06-03 10:13
(Received via mailing list)
Hi,

I installed the require ruby gems and it is there in the lib
directory ..

but when i tried to call it using require its not working

1) with irb: i tired require 'rubygems' its throwing me false
and for require 'scrubyt' its throwing the below given error message

LoadError: no such file to load -- parse_tree_reloaded
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `ge
m_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `re
quire'
        from c:/ruby/lib/ruby/gems/1.8/gems/scrubyt-0.3.0/lib/
Scrubyt.rb:9
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
32:in `ge
m_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
32:in `re
quire'
        from (irb):4

3) when i use it with rails....its throwing the error message
Keynan P. (Guest)
on 2007-06-03 10:49
short term fix
use gem_original_require and supply the full path
unknown (Guest)
on 2007-06-03 11:18
(Received via mailing list)
how to do that can you provide me some example


On Jun 3, 11:49 am, Keynan P. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.