I've run into a problem that I'm having a really hard time diagnosing.

I have this very basic setup (simplified a little for this email).

# model
class Wine < ActiveRecord::Base
        def self.find_current
                find_all_by_current(true)
        end
end

# controller
class WinesController < ApplicationController
        def current
                @wines = Wine.find_current
        end
end

# view
<%= render :partial => 'wine', :collection => @wines %>


And this is all working great until mongrel runs for a little while, at which point it starts to act is if @wines is blank. No exceptions are raised, logs look normal, everything seems cool, except the 'wine' partial isn't rendered. If I jump into script/console, Wine.find_current returns the results I expect. If I restart mongrel, it works fine again. Until a few hours later.

Any ideas?

Thanks,
Javan
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to