Hmm, not sure if I understand that right.
@articles = Article.find(:all)
So I want to display those articles. (And I would
just use this @articles in the views)
Don’t see, how I could “split” that an further.
Sure, I could create and array and assign every article to
it. Would be nonsense I think.
Or say, I want to display only the article names.
Then I could collect those into an array. That would
make slightly more sense, but I wouldn’t do it anyway.
- One more step, extra work without any extra use
- Very likely, that soon enough I want to display more data.
- Would make the code difficult to read.
- Nobody does it that way as far as I know. Never seen a piece
of code in any tutorial or oss project doing it.