Rails - no such file to load -- rdf
I have few ruby classes, that requires 'rdf' gem - when running them from original project everythings works ok.
I coppied those classes to my Rails project to folder Vendor/lfm and added the path to environment.rb. The files load, but the 'rdf' gem that is used in those copied classes does not load. I get:no such file to load -- rdf
and
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `block in require'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `block in load_dependency'
activesupport (3.0.6) 开发者_如何学Clib/active_support/dependencies.rb:596:in `new_constants_in'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `load_dependency'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
vendor/lfm/rdf_transform.rb:14:in `<class:RdfTransform>'
vendor/lfm/rdf_transform.rb:13:in `<top (required)>'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `block in require'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `block in load_dependency'
The RubyPlatform is set the same, and i can see the 'rdf' gem listed in libraries of Rails project.
Any idea? ThanksYou shouldn't need to require this gem in your actual class files - they should instead be listed on your Gemfile, where they'll be required automatically by Rails.
精彩评论