Sean Fioritto
2006-May-25 09:26 UTC
[Rails] ActiveRecord Base, undefined method in mongrel but works in webbrick
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''