Hi all, Today I tried to upgrade one my Rails app to use version 2.2.0 of the framework. However mongrel could not start because of some incompatibility problems. The version of gettext gem is 1.93.0 Here it is the error output: ---------------------------- /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method'': undefined method `render_file'' for class `ActionView::Base'' (NameError) from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'' from /usr/lib64/ruby/gems/1.8/gems/gettext-1.93.0/lib/gettext/rails.rb:291 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/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:148:in `require'' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:507:in `new_constants_in'' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:148:in `require'' from /home/gottin/workspace-netbeans/fanizen/app/controllers/application.rb:1 ... 33 levels... from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'' from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /usr/bin/mongrel_rails:19:in `load'' from /usr/bin/mongrel_rails:19 -------------------------------------- Does someone has any ideas how to fix or workaround this problem? I feel that I should not be the only one with this. -- 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-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 -~----------~----~----~----~------~----~------~--~---
Htis is only the top of the iceberg, render_file can be fixed by patching gettext, but the rest of gettext must largely be rewritten, since rails does not use class- instance variables(@@) anymore for thread safety reasons therefore my guess is that the next version of gettext could take some time... On Oct 26, 4:15 pm, Stanislav Bozhkov <rails-mailing-l...@andreas- s.net> wrote:> Hi all, > > Today I tried to upgrade one my Rails app to use version 2.2.0 of the > framework. However mongrel could not start because of some > incompatibility problems. > > The version of gettext gem is 1.93.0 > > Here it is the error output: > ---------------------------- > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/core_ext/module/aliasing.rb:33:in > `alias_method'': undefined method `render_file'' for class > `ActionView::Base'' (NameError) > from > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/core_ext/module/aliasing.rb:33:in > `alias_method_chain'' > from > /usr/lib64/ruby/gems/1.8/gems/gettext-1.93.0/lib/gettext/rails.rb:291 > 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/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:148:in > `require'' > from > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:507:in > `new_constants_in'' > from > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:148:in > `require'' > from > /home/gottin/workspace-netbeans/fanizen/app/controllers/application.rb:1 > ... 33 levels... > from > /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in > `run'' > from > /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 > from /usr/bin/mongrel_rails:19:in `load'' > from /usr/bin/mongrel_rails:19 > -------------------------------------- > > Does someone has any ideas how to fix or workaround this problem? I feel > that I should not be the only one with this. > -- > Posted viahttp://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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
10x for the explanations. It looks that we should continue developing with the current 2.1.2 version. -- 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-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 -~----------~----~----~----~------~----~------~--~---
See also rails 2.2''s builtin localization stuff: http://www.artweb-design.de/2008/7/18/the-ruby-on-rails-i18n-core-api On 28 Oct 2008, at 15:59, Stanislav Bozhkov wrote:> > 10x for the explanations. > > It looks that we should continue developing with the current 2.1.2 > version. > > -- > 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-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 -~----------~----~----~----~------~----~------~--~---
Masao Mutoh says: work is under way, new gettext will require ruby- locale to run, hopefully we can switch to 2.2 soon :D On Oct 28, 4:59 pm, Stanislav Bozhkov <rails-mailing-l...@andreas- s.net> wrote:> 10x for the explanations. > > It looks that we should continue developing with the current 2.1.2 > version. > > -- > Posted viahttp://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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Masao Mutoh says: work is under way, new gettext will require ruby- locale to run, hopefully we can switch to 2.2 soon :D On Oct 28, 4:59 pm, Stanislav Bozhkov <rails-mailing-l...@andreas- s.net> wrote:> 10x for the explanations. > > It looks that we should continue developing with the current 2.1.2 > version. > > -- > Posted viahttp://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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---