small medium large xlarge

27 Oct 2009, 08:42
Walter Knowles (1 post)

I’ve been working through the tutorial, and all has been going well until I got to Chapter 13. As soon as I add in initializers/I18n.rb (either sequentially by following the example application development or by copying in depot_s), WEBrick dies with:

/home/waltk/programming/projects/depot/vendor/rails/activesupport/lib/active_support/dependencies.rb:278:in load_missing_constant': uninitialized constant I18n (NameError) from /home/waltk/programming/projects/depot/vendor/rails/activesupport/lib/active_support/dependencies.rb:479:in const_missing’ from /home/waltk/programming/projects/depot/config/initializers/I18n.rb:9

which is: I18n.default_locale = ‘en’

I downloaded Clemens Kofler’s I18n tutorial and it runs fine.

I’m running Ubuntu 9.04 Intel32, and the default Ruby 1.8 from ubuntu with gem -installed Rails 2.3.4.

Any ideas where I should be looking to resolve this?

You must be logged in to comment