I have a rails app with the database containing seeded objects. When I access them in a view, all of them get printed onto the bottom of the page. Has anyone else experienced this problem?
Here is the code in the view:
<%= @articles.each do |article| %>
<h2><%= link_to "#{article.title}", title_path(article.index), {class: "link"} %></h2>
<p><%= article.text[0..article.text.index('.')] + "..." %></p>
And here is what is rendered (The blue link and line under is supposed to render, but then all of the seeded articles render):