From: Phlip Date: 2008-09-11T20:33:30+09:00 Subject: Re: Getting values from array of arrays >> So you don't think: >> @news = Article.find( :all, >> :conditions => ["category = ?", >> Article::ARTICLE_CATEGORIES["News"]]) >> >> should be in the controller but instead I should wrap that into a method >> in the model? > > Yes. I don't think the controller should know the details of the > ARTICLE_CATEGORIES data structure. And it should use .find_all_by_category ...