From: "Jan E." Date: 2012-10-13T21:54:32+09:00 Subject: Re: multiple array problem Hi, first select the right category and iterate over the articles afterwards. For example: cat_id = 2 category = case cat_id when 1 category1 when 2 category2 else category3 end category.article.each {|art| puts art.name} It would actually be better if you'd store the different category objects in a structured way (like in a array). That would make selecting them much easier. -- Posted via http://www.ruby-forum.com/.