[Mongrel] Error on Windows and FreeBSD

Kris Leech
2006-09-07T08:20:54Z

Luis Lavena wrote:

>Wow, that''s nasty.
>
>What version of mongrel gem are you using?
>
>
The latest version only installed this week.

>Also, you said on Windows, but which one?
>
>
XP

>What ruby distro are you using? (hope mswin32 of 1.8.4 which is based
>on VC6, same for One-Click Installer).
>
>
Latest version of 1.8.4, which is compiled with VC6++.

>It is only thrown apart when calling that method? which code contains?
>(please paste for better understanding of what are you doing that
>brake so badly).
>
>
I dont have the code to hand today, but its a very simple class, almost
a bare ActiveRecord class.

>
>On 9/6/06, Kris Leech <kris at alternativefocusmedia.com> wrote:
>
>
>>First off Windows, because actually what I appear to be getting is a
>>Rails error which only occurs when I use Mongrel, using Webrick I do not
>>get this error.
>>I start Mongrel using:
>>mongrel_rails start
>>
>>I have mongrel, win32-services and mongrel-service gems installed even
>>through Im not using mongrel as a service at the moment.
>>
>>The whole application works apart from one action. The error I get is:
>>
>>
>>  NoMethodError in SearchController#results
>>
>>undefined method `table_name'' for Stop:Class
>>
>>|(__DELEGATION__):2:in `__send__''
>>(__DELEGATION__):2:in `table_name''
>>#{RAILS_ROOT}/app/models/search.rb:58:in `find_runs''
>>#{RAILS_ROOT}/app/models/search.rb:44:in `depature_runs''
>>#{RAILS_ROOT}/app/controllers/search_controller.rb:100:in
`results''|
>>
>>
>>  So my results action gives an error for table_name! The Stop model is
>>  used by various other controllers just fine. In Console I can do
>>  Stop.find_all, so I dont see how this error is being generated,
>>  besides the application server, mongrel, webrick or other, should not
>>  have any effect once it palms the request off to dispatcher?
>>
>>
>>Many thanks AFM.
>>
>>PS. The freeBSD error can wait for another time :)
>>
>>_______________________________________________
>>Mongrel-users mailing list
>>Mongrel-users at rubyforge.org
>>http://rubyforge.org/mailman/listinfo/mongrel-users
>>
>>
>>
>
>
>
>