Hi all, I keep getting an internal server error from mongrel (also from webrick) whenever I make an error in my code. The error used to be displayed in the browser in 1.2, but now it just doesn''t. My log says that there''s an error in ActionView: ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/templates/rescues/diagnostics.erb: 1: <h1> 2: <%=h @exception.class.to_s %> 3: <% if request.parameters[''controller''] %> 4: in <%=h request.parameters[''controller''].humanize %>Controller< % if request.parameters[''action''] %>#<%=h request.parameters[''action''] %><% end %> 5: <% end %> 6: </h1> and actually says that three times after a request, after reporting my error in the logs. Is that what is supposed to happen? I''ve got both rails 1.2.4 and 2.0.2 installed, maybe this is the problem? Any help appreciated :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That seems odd to me. Is that the full stack trace? If not, could you paste it all? Sometimes the top level error will be in a rails file, but further down the stack, there''s usually a problem in the application code. Are you still running in development mode? -Kyle On Mar 31, 11:58 pm, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > I keep getting an internal server error from mongrel (also from > webrick) whenever I make an error in my code. The error used to be > displayed in the browser in 1.2, but now it just doesn''t. My log says > that there''s an error in ActionView: > > ActionView::TemplateError (wrong number of arguments (0 for 1)) on > line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/templates/rescues/diagnostics.erb: > 1: <h1> > 2: <%=h @exception.class.to_s %> > 3: <% if request.parameters[''controller''] %> > 4: in <%=h request.parameters[''controller''].humanize %>Controller< > % if request.parameters[''action''] %>#<%=h request.parameters[''action''] > %><% end %> > 5: <% end %> > 6: </h1> > > and actually says that three times after a request, after reporting my > error in the logs. Is that what is supposed to happen? I''ve got both > rails 1.2.4 and 2.0.2 installed, maybe this is the problem? > > Any help appreciated :)--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 1, 5:23 pm, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> That seems odd to me. Is that the full stack trace? If not, could > you paste it all? Sometimes the top level error will be in a rails > file, but further down the stack, there''s usually a problem in the > application code.Thanks for replying, I''ve been googling and thinking for like a week now, and nobody seems to know anything about that. The thing is, I know there''s a problem in my application code, and it''s listed in the logs, and that''s fine. But later on I get a couple of basically the same error messages, which are only displayed in the logs, and that seems to be a problem with displaying the first error message in the browser. So finally, I only get internal server error in the browser, and my faulty code is mentioned somewhere in the logs, not even as the last one. This is one of the logs, and don''t be confused - this came from only one request in the browser. And yes, I''m still in development mode. Processing ServicesController#check (for 192.168.1.213 at 2008-04-01 07:21:27) [GET] Session ID: 49e956f9a5f0de4dad4aa5f599f8d044 Parameters: {"action"=>"check", "controller"=>"services"} NoMethodError (You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[]): /app/controllers/services_controller.rb:11:in `check'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:1158:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:1158:in `perform_action_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:697:in `call_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:689:in `perform_action_without_benchmark'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:199:in `perform_action_without_caching'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:678:in `perform_action'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:677:in `perform_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `process_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:685:in `process_without_session_management_support'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session_management.rb:123:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:388:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:171:in `handle_request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: 76:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: 74:in `synchronize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: 74:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 282:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: 64 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 Processing ServicesController#check (for 192.168.1.213 at 2008-04-01 07:21:27) [GET] Session ID: 49e956f9a5f0de4dad4aa5f599f8d044 Parameters: {"action"=>"check", "controller"=>"services"} ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/templates/rescues/diagnostics.erb: 1: <h1> 2: <%=h @exception.class.to_s %> 3: <% if request.parameters[''controller''] %> 4: in <%=h request.parameters[''controller''].humanize %>Controller< % if request.parameters[''action''] %>#<%=h request.parameters[''action''] %><% end %> 5: <% end %> 6: </h1> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `_run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `compile_and_render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 365:in `render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 316:in `render_file'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:179:in `rescue_action_locally'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:123:in `rescue_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:203:in `perform_action_without_caching'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:678:in `perform_action'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:677:in `perform_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `process_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:685:in `process_without_session_management_support'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session_management.rb:123:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:388:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:171:in `handle_request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 282:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: 64 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 /!\ FAILSAFE /!\ Tue Apr 01 07:21:28 +0200 2008 Status: 500 Internal Server Error ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/templates/rescues/diagnostics.erb: 1: <h1> 2: <%=h @exception.class.to_s %> 3: <% if request.parameters[''controller''] %> 4: in <%=h request.parameters[''controller''].humanize %>Controller< % if request.parameters[''action''] %>#<%=h request.parameters[''action''] %><% end %> 5: <% end %> 6: </h1> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `_run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `compile_and_render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 365:in `render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 316:in `render_file'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:179:in `rescue_action_locally'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:123:in `rescue_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:203:in `perform_action_without_caching'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:678:in `perform_action'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:677:in `perform_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `process_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:685:in `process_without_session_management_support'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session_management.rb:123:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:388:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:171:in `handle_request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 282:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: 64 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 On line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/templates/rescues/diagnostics.erb 1: <h1> 2: <%=h @exception.class.to_s %> 3: <% if request.parameters[''controller''] %> 4: in <%=h request.parameters[''controller''].humanize %>Controller<% if request.parameters[''action''] %>#<%=h request.parameters[''action''] %><% end %> 5: <% end %> 6: </h1> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ templates/rescues/diagnostics.erb:3:in `_run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 637:in `compile_and_render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 365:in `render_template'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: 316:in `render_file'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:179:in `rescue_action_locally'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:123:in `rescue_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ rescue.rb:203:in `perform_action_without_caching'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:678:in `perform_action'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ caching.rb:677:in `perform_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:524:in `process_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ filters.rb:685:in `process_without_session_management_support'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session_management.rb:123:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:388:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:171:in `handle_request'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 282:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `each'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: 281:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:489:in `load'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: 64 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 1 Apr 2008, at 17:57, squil wrote:> > On Apr 1, 5:23 pm, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> That seems odd to me. Is that the full stack trace? If not, could >> you paste it all? Sometimes the top level error will be in a rails >> file, but further down the stack, there''s usually a problem in the >> application code. > > Thanks for replying, I''ve been googling and thinking for like a week > now, and nobody seems to know anything about that. >What''s in your services controller? The freakiest of errors can happen if you accidentally redefine a rails provided method. Fred> The thing is, I know there''s a problem in my application code, and > it''s listed in the logs, and that''s fine. But later on I get a couple > of basically the same error messages, which are only displayed in the > logs, and that seems to be a problem with displaying the first error > message in the browser. So finally, I only get internal server error > in the browser, and my faulty code is mentioned somewhere in the logs, > not even as the last one. > > This is one of the logs, and don''t be confused - this came from only > one request in the browser. And yes, I''m still in development mode. > > > Processing ServicesController#check (for 192.168.1.213 at 2008-04-01 > 07:21:27) [GET] > Session ID: 49e956f9a5f0de4dad4aa5f599f8d044 > Parameters: {"action"=>"check", "controller"=>"services"} > > > NoMethodError (You have a nil object when you didn''t expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[]): > /app/controllers/services_controller.rb:11:in `check'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:1158:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:1158:in `perform_action_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:697:in `call_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:689:in `perform_action_without_benchmark'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:199:in `perform_action_without_caching'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:678:in `perform_action'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/query_cache.rb:33:in `cache'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:677:in `perform_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `process_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:685:in `process_without_session_management_support'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > session_management.rb:123:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:388:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:171:in `handle_request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:115:in `dispatch'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:126:in `dispatch_cgi'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:9:in `dispatch'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: > 76:in `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: > 74:in `synchronize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb: > 74:in `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 282:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: > 64 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > script/server:3 > > > > Processing ServicesController#check (for 192.168.1.213 at 2008-04-01 > 07:21:27) [GET] > Session ID: 49e956f9a5f0de4dad4aa5f599f8d044 > Parameters: {"action"=>"check", "controller"=>"services"} > > > ActionView::TemplateError (wrong number of arguments (0 for 1)) on > line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/templates/rescues/diagnostics.erb: > 1: <h1> > 2: <%=h @exception.class.to_s %> > 3: <% if request.parameters[''controller''] %> > 4: in <%=h request.parameters[''controller''].humanize %>Controller< > % if request.parameters[''action''] %>#<%=h request.parameters[''action''] > %><% end %> > 5: <% end %> > 6: </h1> > > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in `request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in > ` > _run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb > '' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `compile_and_render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 365:in `render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 316:in `render_file'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:179:in `rescue_action_locally'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:123:in `rescue_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:203:in `perform_action_without_caching'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:678:in `perform_action'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/query_cache.rb:33:in `cache'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:677:in `perform_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `process_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:685:in `process_without_session_management_support'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > session_management.rb:123:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:388:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:171:in `handle_request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:115:in `dispatch'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:126:in `dispatch_cgi'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:9:in `dispatch'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `synchronize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 282:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: > 64 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > script/server:3 > > /!\ FAILSAFE /!\ Tue Apr 01 07:21:28 +0200 2008 > Status: 500 Internal Server Error > > > ActionView::TemplateError (wrong number of arguments (0 for 1)) on > line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/templates/rescues/diagnostics.erb: > 1: <h1> > 2: <%=h @exception.class.to_s %> > 3: <% if request.parameters[''controller''] %> > 4: in <%=h request.parameters[''controller''].humanize %>Controller< > % if request.parameters[''action''] %>#<%=h request.parameters[''action''] > %><% end %> > 5: <% end %> > 6: </h1> > > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in `request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in > ` > _run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb > '' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `compile_and_render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 365:in `render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 316:in `render_file'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:179:in `rescue_action_locally'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:123:in `rescue_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:203:in `perform_action_without_caching'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:678:in `perform_action'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/query_cache.rb:33:in `cache'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:677:in `perform_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `process_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:685:in `process_without_session_management_support'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > session_management.rb:123:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:388:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:171:in `handle_request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:115:in `dispatch'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:126:in `dispatch_cgi'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:9:in `dispatch'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `synchronize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 282:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: > 64 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > script/server:3 > > > On line #3 of var/lib/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/templates/rescues/diagnostics.erb > > 1: <h1> > 2: <%=h @exception.class.to_s %> > 3: <% if request.parameters[''controller''] %> > 4: in <%=h request.parameters[''controller''].humanize > %>Controller<% if request.parameters[''action''] %>#<%=h > request.parameters[''action''] %><% end %> > 5: <% end %> > 6: </h1> > > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in `request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > templates/rescues/diagnostics.erb:3:in > ` > _run_erb_47var47lib47gems47146847gems47actionpack45246046247lib47action_controller47templates47rescues47diagnostics46erb > '' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 637:in `compile_and_render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 365:in `render_template'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb: > 316:in `render_file'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:179:in `rescue_action_locally'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:123:in `rescue_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > rescue.rb:203:in `perform_action_without_caching'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:678:in `perform_action'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/query_cache.rb:33:in `cache'' > /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > caching.rb:677:in `perform_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:524:in `process_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > filters.rb:685:in `process_without_session_management_support'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > session_management.rb:123:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > base.rb:388:in `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:171:in `handle_request'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:115:in `dispatch'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:126:in `dispatch_cgi'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ > dispatcher.rb:9:in `dispatch'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `synchronize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `process'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 282:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `each'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb: > 281:in `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run'' > /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:489:in `load'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb: > 64 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:496:in `require'' > /var/lib/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > script/server:3 > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 1, 7:00 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 1 Apr 2008, at 17:57, squil wrote: > > > > > On Apr 1, 5:23 pm, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> That seems odd to me. Is that the full stack trace? If not, could > >> you paste it all? Sometimes the top level error will be in a rails > >> file, but further down the stack, there''s usually a problem in the > >> application code. > > > Thanks for replying, I''ve been googling and thinking for like a week > > now, and nobody seems to know anything about that. > > What''s in your services controller? The freakiest of errors can happen > if you accidentally redefine a rails provided method. >This is my services controller: class ServicesController < ApplicationController protect_from_forgery :only => [:create, :update, :destroy] def index end def check ext = %w( pl com com.pl org net biz info) list = make_list(params[:domain][:name].split(".")[0], ext) xml = eurodns_helper.domain_check_request(list) response = eurodns_helper.request(xml) @domains = eurodns_helper.domain_check_response(response) @hosting = HostingPlanService.find_active end def check_domain @test = {:name => "bla_name"} respond_to do |format| format.html format.xml end end private def make_list(domain, ext) list = Array.new ext.each do |ex| list << domain + "." + ex end list end end --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The problem in your application code is that you''re trying to create a list using the custom make_list method when your params are nil (according to the request); thus, params[:domain][:name].split(".")[0] gives you an error. ...But the if the issue is that Rails isn''t displaying your error in the browser, then something deeper is going on. As best I can tell, rails is having trouble displaying your error message because it can''t process: <% if request.parameters[''controller''] %> Perhaps it doesn''t like ''Services'' as a controller name? This is beyond me, but you could try (with some effort) renaming the controller and seeing what happens. -Kyle On Apr 1, 1:30 pm, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 1, 7:00 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On 1 Apr 2008, at 17:57, squil wrote: > > > > On Apr 1, 5:23 pm, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> That seems odd to me. Is that the full stack trace? If not, could > > >> you paste it all? Sometimes the top level error will be in a rails > > >> file, but further down the stack, there''s usually a problem in the > > >> application code. > > > > Thanks for replying, I''ve been googling and thinking for like a week > > > now, and nobody seems to know anything about that. > > > What''s in your services controller? The freakiest of errors can happen > > if you accidentally redefine a rails provided method. > > This is my services controller: > > class ServicesController < ApplicationController > protect_from_forgery :only => [:create, :update, :destroy] > > def index > end > > def check > ext = %w( pl com com.pl org net biz info) > > list = make_list(params[:domain][:name].split(".")[0], ext) > > xml = eurodns_helper.domain_check_request(list) > response = eurodns_helper.request(xml) > @domains = eurodns_helper.domain_check_response(response) > > @hosting = HostingPlanService.find_active > end > > def check_domain > @test = {:name => "bla_name"} > respond_to do |format| > format.html > format.xml > end > end > > private > def make_list(domain, ext) > list = Array.new > ext.each do |ex| > list << domain + "." + ex > end > list > end > end--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 3, 1:09 am, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The problem in your application code is that you''re trying to create a > list using the custom make_list method when your params are nil > (according to the request); thus, params[:domain][:name].split(".")[0] > gives you an error. > > ...But the if the issue is that Rails isn''t displaying your error in > the browser, then something deeper is going on. As best I can tell, > rails is having trouble displaying your error message because it can''t > process: > > <% if request.parameters[''controller''] %> > > Perhaps it doesn''t like ''Services'' as a controller name? This is > beyond me, but you could try (with some effort) renaming the > controller and seeing what happens.Ok I renamed the controller, and I still get the same thing. I also tried to check if request.nil? in the diagnostics.erb file, but it still gives me the same error, only this time in the line with the request.nil? instruction. So maybe this is some problem with the request? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 3, 7:19 am, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 3, 1:09 am, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > The problem in your application code is that you''re trying to create a > > list using the custom make_list method when your params are nil > > (according to the request); thus, params[:domain][:name].split(".")[0] > > gives you an error. > > > ...But the if the issue is that Rails isn''t displaying your error in > > the browser, then something deeper is going on. As best I can tell, > > rails is having trouble displaying your error message because it can''t > > process: > > > <% if request.parameters[''controller''] %> > > > Perhaps it doesn''t like ''Services'' as a controller name? This is > > beyond me, but you could try (with some effort) renaming the > > controller and seeing what happens. > > Ok I renamed the controller, and I still get the same thing. I also > tried to check if request.nil? in the diagnostics.erb file, but it > still gives me the same error, only this time in the line with the > request.nil? instruction. So maybe this is some problem with the > request?I also created another project with one controller and no models, made a code error there and the error message was correctly displayed in my browser. So I guess it is something with my code then. I guess I''ll try to create another project, and just copy files to find what''s happening. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Posibly, you''re using "parameters". You need "params". Julian. Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) NEW VIDEO (#2) OUT NOW! http://sensei.zenunit.com/ On 03/04/2008, at 4:29 PM, squil wrote:> > On Apr 3, 7:19 am, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Apr 3, 1:09 am, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> The problem in your application code is that you''re trying to >>> create a >>> list using the custom make_list method when your params are nil >>> (according to the request); thus, params[:domain][:name].split(".") >>> [0] >>> gives you an error. >> >>> ...But the if the issue is that Rails isn''t displaying your error in >>> the browser, then something deeper is going on. As best I can tell, >>> rails is having trouble displaying your error message because it >>> can''t >>> process: >> >>> <% if request.parameters[''controller''] %> >> >>> Perhaps it doesn''t like ''Services'' as a controller name? This is >>> beyond me, but you could try (with some effort) renaming the >>> controller and seeing what happens. >> >> Ok I renamed the controller, and I still get the same thing. I also >> tried to check if request.nil? in the diagnostics.erb file, but it >> still gives me the same error, only this time in the line with the >> request.nil? instruction. So maybe this is some problem with the >> request? > > I also created another project with one controller and no models, made > a code error there and the error message was correctly displayed in my > browser. So I guess it is something with my code then. I guess I''ll > try to create another project, and just copy files to find what''s > happening. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 3, 7:29 am, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 3, 7:19 am, squil <squ...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On Apr 3, 1:09 am, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > The problem in your application code is that you''re trying to create a > > > list using the custom make_list method when your params are nil > > > (according to the request); thus, params[:domain][:name].split(".")[0] > > > gives you an error. > > > > ...But the if the issue is that Rails isn''t displaying your error in > > > the browser, then something deeper is going on. As best I can tell, > > > rails is having trouble displaying your error message because it can''t > > > process: > > > > <% if request.parameters[''controller''] %> > > > > Perhaps it doesn''t like ''Services'' as a controller name? This is > > > beyond me, but you could try (with some effort) renaming the > > > controller and seeing what happens. > > > Ok I renamed the controller, and I still get the same thing. I also > > tried to check if request.nil? in the diagnostics.erb file, but it > > still gives me the same error, only this time in the line with the > > request.nil? instruction. So maybe this is some problem with the > > request? > > I also created another project with one controller and no models, made > a code error there and the error message was correctly displayed in my > browser. So I guess it is something with my code then. I guess I''ll > try to create another project, and just copy files to find what''s > happening.Well, I finally found what was going on. I was making an xml request to a server, and called the variable ''request'', obviously. I also had a method called ''request''. So after that, the request variable didn''t have any parameter called "controller". After changing the variable name and the method name my errors started showing up in the browser. Anyway thanks for help everyone :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---