Get "Uninitialized constant" with Globalize

Hey there :slight_smile:

Wondering what’s up with this… I just installed the Globalize plug-in
in my current project, ran the rake globalize:setup script, then added
“include Globalize” to my config/environment.rb.

Now, when I try to start my server, I get:

=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at
** Starting Rails with development environment…
load_missing_constant': uninitialized constant Globalize (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-’
const_missing' from /home/daniel/Documents/Projects/Eclipse/polybook/config/environment.rb:14 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require' from /usr/lib/ruby/gems/1.8/gems/activesupport-’
new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-’
… 24 levels…
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-’
from script/server:3

Can anybody help me out? I don’t know what’s wrong here :confused:

Daniel :slight_smile:

Sorry, sorry, I’m an idiot! Just had the include statement too early in
the environment.rb file. D’oh! :smiley:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs