Question

I have a library that I'm trying to get working with rails 3 (specifically feedzirra) which I can require ok in irb but it breaks the console in my app with the following error:

http://pastie.org/855976

Was it helpful?

Solution

Rails3 modifies the $LOAD_PATH so it only contains gems listed in the Gemfile. ($LOAD_PATH is an array of directories where Ruby searches for libraries).

So you must add the Gem to the Gemfile and run bundle install. You can check if the gem is in your path by typing puts $LOAD_PATH.grep(/feedzirra/) in the rails console.

For more information on using Bundler in Rails3 check out these:

OTHER TIPS

Found a bit of info on using feedzirra with rails 3. It looks like your problem might be with the Loofah library feedzira uses. It uses the deprecated config.framework.

Here's a link with some more info http://www.mythoughtpot.com/2010/02/10/feedzirra-on-rails3/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top