Hi,
My application works great under webrick. But, when I try to test the
dispatch.fcgi (by running ruby public/dispatch.fcgi), it bombs and
gives this error message. Any iideas?
Processing ContentsController#index (for at Wed Aug 03 22:48:57 PDT 2005)
Parameters: {"controller"=>"contents"}
NoMethodError (WARNING: You have a nil object when you probably
didn''t expect it! Odds are you
want an instance of Array instead.
Look in the callstack to see where you''re working with an object that
could be nil.
Investigate your methods and make sure the object is what you expect!
):
/vendor/rails/actionpack/lib/action_controller/request.rb:183:in
`host_with_port''
/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:24:in
`rewrite_url''
/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:11:in
`rewrite''
/vendor/rails/actionpack/lib/action_controller/base.rb:440:in
`url_for''
/vendor/rails/actionpack/lib/action_controller/base.rb:706:in
`redirect_to''
app/controllers/contents_controller.rb:6:in `index''
/vendor/rails/actionpack/lib/action_controller/base.rb:756:in
`send''
/vendor/rails/actionpack/lib/action_controller/base.rb:756:in
`perform_action_without_filters''
/vendor/rails/actionpack/lib/action_controller/filters.rb:295:in
`perform_action_without_benchmark''
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in
`perform_action_without_rescue''
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in
`measure''
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in
`perform_action_without_rescue''
/vendor/rails/actionpack/lib/action_controller/rescue.rb:80:in
`perform_action''
/vendor/rails/actionpack/lib/action_controller/base.rb:356:in
`send''
/vendor/rails/actionpack/lib/action_controller/base.rb:356:in
`process''
/vendor/rails/railties/lib/dispatcher.rb:32:in `dispatch''
public/dispatch.fcgi:86:in `process_request''
public/dispatch.fcgi:33:in `process!''
public/dispatch.fcgi:32:in `each_cgi''
public/dispatch.fcgi:32:in `process!''
public/dispatch.fcgi:98
Rendering
./public/../config/..//vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)