Forum: Ruby on Rails ActiveRecord Base, undefined method in mongrel but works in

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sean Fioritto (Guest)
on 2006-05-25 13:26
(Received via mailing list)
Hey all,

I have a problem where for one class in my web application, any of the
methods inherited from activeRecord Base do not work using Mongrel,
but everything works perfectly using webbrick.

Any pointers would be great since I'm rather befuddled. Also, if more
information is needed to help figure this out just let me know.

thanks,
Sean

Here are two example error messages:

Example 1:

undefined method `count' for Stop:Class

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:172:in
`count_collection_for_pagination'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:196:in
`paginator_and_collection_for'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:129:in
`paginate'
#{RAILS_ROOT}/app/controllers/admin/stop_controller.rb:8:in `list'
#{RAILS_ROOT}/app/controllers/admin/stop_controller.rb:3:in `index'

Example 2:

undefined method `find' for Stop:Class

#{RAILS_ROOT}/app/controllers/admin/route_controller.rb:8:in `index'
This topic is locked and can not be replied to.