I’m no associations expert so just because I don’t see a solution of that kind doesn’t mean there’s not… That being said, what I would do [as someone who doesn’t see an easier fix] is write another method which calls User#live_comics intermediarily [please, PLEASE, let that be a real word]. Something like…
def good_live_comics
Yay Enumerable methods!
live_comics.select{|c| !c.pages.zero?} end
I’d also have written the :conditions for that has_many :live_comics as [“live = ? and published_on <= ?”, true, Time.now] since you’ve got a boolean [true/false] on the database and not an integer [0/1]. But that’s probably more cosmetic than anything.
Hope I helped. Or at least made you chuckle at my pre-coffee insanity.
RSL