check out this http://guides.rubyonrails.org/layouts_and_rendering.html 3.4.5 about rendering collections