Rails 3: config/initializers errors for gem configuration

Posted by neezer on Stack Overflow See other posts from Stack Overflow or by neezer
Published on 2010-05-16T15:36:46Z Indexed on 2010/05/16 15:40 UTC
Read the original article Hit count: 338

I'm trying to setup this plugin (Crumble), and the docs say I need to add a configuration file for the plugin in config/initializers/ like this (breadcrumb.rb):

Breadcrumb.configure do
   ...
end

I add in my directives in that block, and reloaded the page, and I'm immediately greeted with a Passenger error:

uninitialized constant Breadcrumb

What am I missing here? gem list shows Crumble as installed, and if I launch IRB I can require 'crumble' successfully. I remember doing this just fine in Rails 2.3.5. Here's my setup:

rails 3.0.0.beta3
ruby 1.9.1p378 (via RVM)
passenger 2.2.11 (with Apache2)
crumble 0.1.2

I've been trying to read the Rails 3 release notes to see if they've changed anything that would affect this, but so far I haven't found anything to suggest that the above shouldn't work. I'd appreciate any guidance you could spare me!

© Stack Overflow or respective owner

Related posts about ruby-on-rails3beta

Related posts about crumble