Hey there :)
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 :/
Thanks,
Daniel :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Daniel Smedegaard Buus
2007-Jan-17 11:06 UTC
Re: Get "Uninitialized constant" with Globalize
Sorry, sorry, I''m an idiot! Just had the include statement too early in the environment.rb file. D''oh! :D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- configuration issue (Uninitialized constant Aftimagr (NameError) )
- uninitialized constant error with restful authentication
- Uninitialized constant in integration test
- oracle_enhanced adapter 'uninitialized constant' error
- uninitialized constant ActsAsFerret (NameError)