PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Server Hangs on ActiveScaffold on model from Secondary Database #700

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tried with Rails 2.2.2, ActiveScaffold 2.2, Rails 2.3.3, 2.3.4,
ActiveScaffold commit: 4313eb1c6145526d90cb09cf82e293b48c4abfb3, secondary
database MySQL
2. create models like so: http://pastie.org/617847
3. add active_scaffold :protocol to ProtocolsController
4. go to http://localhost:3000/protocols

What is the expected output? What do you see instead?
ActiveScaffold index should load.  Server hangs and browser never receives
a respond.  Server has to be killed.

Using ruby-debug I found the server hangs on line 437 of
aptionpack-2.3.4/lib/action_controller/routing/route_set.rb:

   432        end
   433  
   434        def call(env)
   435          request = Request.new(env)
   436          app = Routing::Routes.recognize(request)
=> 437          app.call(env).to_a
   438        end
   439  
   440        def recognize(request)
   441          params = recognize_path(request.path,
extract_request_environment(request))

Typing "y env" (without quotes at the prompt) produces:
http://www.pastie.org/617890

Thank you very much for any help you can provide!

Original issue reported on code.google.com by patrick....@gmail.com on 15 Sep 2009 at 8:06

GoogleCodeExporter commented 9 years ago
Is it a ActiveScaffold problem? Can you get working without active scaffold 
defining
an index action which gets all protocol records for example?

Original comment by sergio.c...@gmail.com on 16 Feb 2010 at 10:38

GoogleCodeExporter commented 9 years ago

Original comment by sergio.c...@gmail.com on 16 Feb 2010 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by sergio.c...@gmail.com on 30 Mar 2010 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by sergio.c...@gmail.com on 12 Apr 2010 at 7:58