blatyo/page_rankr — Issue #15: Gem works in Console but not irb
Author: jackmcdade
Created: 2012-02-10 17:11:50+00:00
State: open

I'm trying to use the PageRankr gem in a new Rails 3.2.0 / Ruby 1.9.2 app, and it works perfectly in the console, but not in the app itself. I've tried a few methods (e.g. following the Is Popular app and requiring the gem in the model), and i either get "uninitialized constant Site::PageRankr" or the rails server just crashes out with Trace/BPT trap: 5.

Any ideas?