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 http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
Exiting
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:263:in
load_missing_constant': uninitialized constant Globalize (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:446:in const_missing’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:458:in
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:in gem_original_require’
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:489:in require’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:337:in
new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:489:in require’
… 24 levels…
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:489:in
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:337:in new_constants_in’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:489:in
`require’
from script/server:3

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

Thanks,
Daniel :slight_smile:

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