From: Lorgio Jimenez Date: 2008-05-30T00:13:18+09:00 Subject: Re: DRb Problems with Mac OS X 10.5.3 Blaz Rubi wrote: > I put this just before "Rails::Initializer.run(:set_load_path)" in > config/boot.rb > > ======= > # HACK > require 'drb' > class DRb::DRbTCPSocket > class << self > alias parse_uri_orig parse_uri > def parse_uri(*args) > ary = parse_uri_orig(*args) > ary[1] = nil if ary[1] == 0 > ary > end > end > end > ======= Anyone else get errors from inserting this code? if you place it in the LINE before "Rails::Initializer.run(:set_load_path)" I got a syntax error script/server:2:in `require': ./script/../config/boot.rb:41: class definition in method body (SyntaxError) from script/server:2 which makes sense. if you place it outside of the Boot Class you get a SystemStackError ./script/../config/boot.rb:43:in `parse_uri_orig': stack level too deep (SystemStackError) from ./script/../config/boot.rb:43:in `parse_uri_orig' from /Users/lorgio/Sites/gawkk/config/boot.rb:43:in `parse_uri' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:874:in `uri_option' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:780:in `uri_option' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:778:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:778:in `uri_option' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1044:in `initialize' from /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session/drb_store.rb:8:in `new' ... 51 levels... from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' from script/server:3 Anyone get this working? Am I placing this in the wrong place? or is there something I missed? -- Posted via http://www.ruby-forum.com/.