Topic: DRY collection of a find result
I want to extract four instance variables to make them available to a view. My query:
@results = Item.find(:all, :conditions ...)
Now, each item in @results belongs to a category and in the view, they should be separated for better display. So is it better to write 4 find lines or only one as above and collect them ? if you suggest the second way, please help me in coding it!
Thanks in advance