def comment_count Comment.count(:conditions => "recipe_id = " + self.id.to_s) end
Might not be the best solution, but it should work (you can read about that in the API reference, just search for 'count' and 'ActiveRecord::Calculations').
Christoph
Dave A. wrote: