I am using Ruby on Rails 3.2.13 and I would like to render partial templates for an array of objects within a helper method. That is, in my helper file I have:
def render_articles(articles)
articles.each do |article|
render :partial => ...
end
end
The above method, however, doesn't return partial templates but an array. How can I properly render those?
render :partial => '...', :collection => articles?