I’m trying to load the blackbook gem. I had it working at one point
and don’t recall how I broke it. Anyway, right now, I can load it in
irb and I get ‘true’ (success). The app dies, however and I get this
in the log:
MissingSourceFile (no such file to load – blackbook):
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/
dependencies.rb:510:in require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/ dependencies.rb:355:innew_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/
dependencies.rb:510:in `require’
/app/controllers/friends_controller.rb:4
…
So, it sounds like irb is using one gem path and the application is
using another. I’m sure the gem is there, and this is a hosted app so
I don’t have root. (The app works fine on my dev machine).
When you issue the original ‘rails’ command, to populate the
directory, it seems to embed gem version numbers here and there. Try
creating a virgin directory with and diffing the created files with
the stuff in your directory. Especially the config and environment
stuff.
You can use multiple gem repositories at the same time that way. Your
rails console should use the same gem version as your web app, so test
it there first.
I don’t know anything about blackbook, never heard of it.