Currently i’m getting all the stories that belong to a given article,
and listing them, with
for story in @article.story
the usual sort of thing, right?
I want to add a condition, that only selects stories where the
‘complete’ field is equal to 1. So, it’s like saying
for story in Story.find(:all, :conditions => [“article_id = ? and
complete = ?”, @article, 1])
but in the view. There must be a simple way to do this but i can’t find
it - can someone help please?