<% comments.each do |comment| %> <%= render partial: 'shared/comments/item', locals: { comment: comment } %> <% end %>