Peter-Frank Spierenburg
2005-Apr-04 19:46 UTC
#<NoMethodError: private method `split'' called for nil:NilClass>
Can anyone help me with the following error? It appears in the output of the webrick server. I''m not sure what causes it exactly, except that it appears when I invoke the following method through http://localhost:3000/users/logout: def logout reset_session redirect_to_url("/") end The browser gets a Not Found message (404 I believe). Any ideas? #<NoMethodError: private method `split'' called for nil:NilClass> ["/usr/lib/ruby/1.8/cgi.rb:896:in `parse''", "/usr/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/cgi_ext/raw_post_data_fix.rb:14:in `initialize_query''", "/usr/lib/ruby/1.8/cgi.rb:2269:in `initialize''", "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/dispatcher.rb:28:in `new''", "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/dispatcher.rb:28:in `dispatch''", "/share/home/peter/hgs/rails/public/dispatch.rb:10", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in `load''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in `load''", "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:84:in `handle_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:35:in `do_POST''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", "/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", "/usr/lib/ruby/1.8/webrick/server.rb:94:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `each''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:21:in `dispatch''", "./script/server:48"] _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Flurin Egger
2005-Apr-04 19:52 UTC
Re: #<NoMethodError: private method `split'' called for nil:NilClass>
Hi, This is fixed in Ticket #1001 (http://dev.rubyonrails.org/ticket/1001). It''s already commited to SVN. So it''ll be in the next version ;) Kind Regards, Flurin Egger Peter-Frank Spierenburg wrote:> Can anyone help me with the following error? It appears in the output > of the webrick server. I''m not sure what causes it exactly, except > that it appears when I invoke the following method through > http://localhost:3000/users/logout: > > def logout > reset_session > redirect_to_url("/") > end > > The browser gets a Not Found message (404 I believe). > > Any ideas? > > #<NoMethodError: private method `split'' called for nil:NilClass> > ["/usr/lib/ruby/1.8/cgi.rb:896:in `parse''", > "/usr/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/cgi_ext/raw_post_data_fix.rb:14:in > `initialize_query''", "/usr/lib/ruby/1.8/cgi.rb:2269:in `initialize''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/dispatcher.rb:28:in > `new''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/dispatcher.rb:28:in > `dispatch''", "/share/home/peter/hgs/rails/public/dispatch.rb:10", > "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in > `load''", > "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in > `load''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:84:in > `handle_dispatch''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:35:in > `do_POST''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in > `__send__''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in > `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", > "/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread''", > "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start''", > "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", > "/usr/lib/ruby/1.8/webrick/server.rb:94:in `start''", > "/usr/lib/ruby/1.8/webrick/server.rb:89:in `each''", > "/usr/lib/ruby/1.8/webrick/server.rb:89:in `start''", > "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", > "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:21:in > `dispatch''", "./script/server:48"] > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >