Sharagoz -- wrote:
> Did you add init_gettext to the application controller?
> class ApplicationController < ActionController::Base
>   init_gettext "aaa_arb"
> end

Hi Sharagoz,

I followed the recommendations to migrate to rails 2.3 with gettext 
here:
http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html

But I still get the error below.
At line 69 of environment.rb is:
   config.gem "locale_rails"

Any ideas?


=============================
C:\rails_apps\aaa_arb>ruby script/server -e production
./script/../config/boot.rb:20:Warning: Gem::SourceIndex#search support 
for Strin
g patterns is deprecated, use #find_name
=> 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 production environment...
Exiting
C:/rails_apps/aaa_arb/config/environment.rb:69: private method `gem' 
called for
#<Rails::Configuration:0x573f060> (NoMethodError)
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.1/lib/initializer.rb:47:in
 `run'
        from C:/rails_apps/aaa_arb/config/environment.rb:25
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:496:in `require'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:342:in `new_constants_in'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:496:in `require'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib
/mongrel/rails.rb:147:in `rails'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongre
l_rails:113:in `cloaker_'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongre
l/configurator.rb:149:in `call'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongre
l/configurator.rb:149:in `listener'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongre
l_rails:99:in `cloaker_'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongre
l/configurator.rb:50:in `call'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongre
l/configurator.rb:50:in `initialize'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongre
l_rails:84:in `new'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongre
l_rails:84:in `run'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongre
l/command.rb:212:in `run'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongre
l_rails:281
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:489:in `load'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:489:in `load'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:342:in `new_constants_in'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:489:in `load'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.1/lib/commands/servers/mon
grel.rb:64
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:496:in `require'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:342:in `new_constants_in'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_suppo
rt/dependencies.rb:496:in `require'
        from 
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.1/lib/commands/server.rb:3
9
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
-- 
Posted via http://www.ruby-forum.com/.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to