Sharagoz – wrote:
Do you suggest removing that ?
Yes, and then look at the documentation here for how to set up
gettext_rails:
GitHub - mutoh/gettext_rails: Ruby on Rails (>=2.3) localization support with Ruby-GetText-Package.
Okay, I commented the line, and here’s what I did, according to that
page:
C:\Windows\system32>gem uninstall gettext
Remove executables:
rgettext, rmsgfmt, rmsgmerge
in addition to the gem? [Yn] Y
Removing rgettext
Removing rmsgfmt
Removing rmsgmerge
Successfully uninstalled gettext-1.10.0-x86-mswin32
C:\Windows\system32>gem install gettext
Successfully installed locale-2.0.5
Successfully installed gettext-2.1.0
2 gems installed
Installing ri documentation for locale-2.0.5…
Installing ri documentation for gettext-2.1.0…
Installing RDoc documentation for locale-2.0.5…
Installing RDoc documentation for gettext-2.1.0…
C:\Windows\system32>gem install locale_rails
Successfully installed locale_rails-2.0.5
1 gem installed
Installing ri documentation for locale_rails-2.0.5…
Installing RDoc documentation for locale_rails-2.0.5…
C:\Windows\system32>gem install gettext_rails
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
Successfully installed gettext_rails-2.1.0
5 gems installed
Installing ri documentation for actionpack-2.3.5…
Installing ri documentation for actionmailer-2.3.5…
Installing ri documentation for activeresource-2.3.5…
Installing ri documentation for rails-2.3.5…
Installing ri documentation for gettext_rails-2.1.0…
Installing RDoc documentation for actionpack-2.3.5…
Installing RDoc documentation for actionmailer-2.3.5…
Installing RDoc documentation for activeresource-2.3.5…
Installing RDoc documentation for rails-2.3.5…
Installing RDoc documentation for gettext_rails-2.1.0…
C:\Windows\system32>gem install gettext_activerecord
Successfully installed gettext_activerecord-2.1.0
1 gem installed
Installing ri documentation for gettext_activerecord-2.1.0…
Installing RDoc documentation for gettext_activerecord-2.1.0…
C:\Windows\system32>gem install locale
Successfully installed locale-2.0.5
1 gem installed
Installing ri documentation for locale-2.0.5…
Installing RDoc documentation for locale-2.0.5…
C:\Windows\system32>gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 1.3.5)
actionpack (2.3.5, 1.13.5)
actionwebservice (1.2.5)
activerecord (2.3.5, 1.15.5)
activeresource (2.3.5)
activesupport (2.3.5, 1.4.4)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
gettext (2.1.0)
gettext_activerecord (2.1.0)
gettext_rails (2.1.0)
locale (2.0.5)
locale_rails (2.0.5)
log4r (1.1.5)
mongrel (1.1.5)
rack (1.0.1)
rails (2.3.5, 1.2.5)
rake (0.8.7)
ruby-postgres (0.7.1.2006.04.06)
Then I try to restart the server:
C:\rails_apps\aaa_arb>ruby script/server -e production
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/co
okie_store.rb:163:in ensure_session_key': A key is required to write a cookie c ontaining the session data. Use config.action_controller.session = { :key => "_m yapp_session", :secret => "some secret phrase" } in config/environment.rb (Argum entError) from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll er/session/cookie_store.rb:74:in
initialize’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/middleware_stack.rb:72:in new' from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll er/middleware_stack.rb:72:in
build’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/middleware_stack.rb:116:in build' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo rt/inflector.rb:361:in
inject’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/middleware_stack.rb:116:in each' from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll er/middleware_stack.rb:116:in
inject’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/middleware_stack.rb:116:in build' from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll er/dispatcher.rb:130:in
build_middleware_stack’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/dispatcher.rb:81:in initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll er/dispatcher.rb:51:in
new’
from
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controll
er/dispatcher.rb:51:in run_prepare_callbacks' from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:631:i n
prepare_dispatcher’
from
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:185:i
n process' from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:i n
send’
from
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:i
n 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.3.5/lib/active_suppo rt/dependencies.rb:156:in
require’
from
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo
rt/dependencies.rb:521:in new_constants_in' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo rt/dependencies.rb:156:in
require’
from
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:8
4
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 script/server:3