Hello, I installed ruby and after rails with gem and after when I try to run rails I get the next error: /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in `remove_const'': constant Logger::Format not defined (NameError) and some other rows. The problem is the next line in clean_logger.rb: remove_const "Format" If I comment it out it is working... I using ruby 1.8.3 and rails from gem, and this is a linux system (UHU Linux) Where can I find the solution? -- Ámon Tamás http://amon.hu
> I using ruby 1.8.3 and rails from gem, and this is a linux system (UHU > Linux)Yes, this is a known incompatibility between Rails 0.13.1 and Ruby 1.8.3. We should have it fixed shortly. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
Ah ... I was just going to post the same message. Gentoo picked up Ruby 1.8.3 and "rails demo" crashed. I assumed that was it, but I''m glad to have confirmation. For now, I think I''ll drop back to Ruby 1.8.2. Where does one look for the Rails fix? David Heinemeier Hansson wrote:>>I using ruby 1.8.3 and rails from gem, and this is a linux system (UHU >>Linux) >> >> > >Yes, this is a known incompatibility between Rails 0.13.1 and Ruby >1.8.3. We should have it fixed shortly. >-- >David Heinemeier Hansson >http://www.loudthinking.com -- Broadcasting Brain >http://www.basecamphq.com -- Online project management >http://www.backpackit.com -- Personal information manager >http://www.rubyonrails.com -- Web-application framework >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- M. Edward (Ed) Borasky http://www.borasky-research.net/ http://borasky-research.blogspot.com/ http://pdxneurosemantics.com http://pdx-sales-coach.com http://algocompsynth.com
The quick (temporary I guess) fix is to edit clean_logger.rb, on my FC3 server it''s located at: /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support Comment out: remove_const "Format" And change the order of the arguments in format_message to look like: def format_message(severity, timestamp, progname, msg) That got my application back up and running with working logs after upgrading Ruby to 1.8.3 - I''d imagine they''ll be a more robust solution in the next release of Rails. The ticket to watch is probably: http://dev.rubyonrails.com/ticket/2263 Paul. On 24/09/05, M. Edward (Ed) Borasky <znmeb-2WxwdZd67h7R7s880joybQ@public.gmane.org> wrote:> Ah ... I was just going to post the same message. Gentoo picked up Ruby > 1.8.3 and "rails demo" crashed. I assumed that was it, but I''m glad to > have confirmation. For now, I think I''ll drop back to Ruby 1.8.2. Where > does one look for the Rails fix? > > David Heinemeier Hansson wrote: > > >>I using ruby 1.8.3 and rails from gem, and this is a linux system (UHU > >>Linux) > >> > >> > > > >Yes, this is a known incompatibility between Rails 0.13.1 and Ruby > >1.8.3. We should have it fixed shortly. > >-- > >David Heinemeier Hansson > >http://www.loudthinking.com -- Broadcasting Brain > >http://www.basecamphq.com -- Online project management > >http://www.backpackit.com -- Personal information manager > >http://www.rubyonrails.com -- Web-application framework > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > -- > M. Edward (Ed) Borasky > > http://www.borasky-research.net/ > http://borasky-research.blogspot.com/ > > http://pdxneurosemantics.com > http://pdx-sales-coach.com > http://algocompsynth.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >