Forum: Ruby on Rails script/generate not recognizing I18n

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Data (Guest)
on 2008-12-09 15:49
(Received via mailing list)
Hi,

After creating a new, clean Rails-2.2.2 project and inserting

    I18n.default_locale = "de"

in config/environment.rb, the command

    script/generate

ends with

    .../config/environment.rb:76: uninitialized constant I18n
(NameError)

This is strange since I18n of rails-2.2.2 worked fine for me in
another project. Just `script/generate` complains.

Hints appreciated!
Michael
This topic is locked and can not be replied to.