I'm doing the Getting Started with Rails guide at http://guides.rubyonrails.org/getting_started.html and I'm up to the last section of 5.8. My output contains this additional line and I can't figure out where it comes from. Can someone help me out?
[#<Article id: 1, title: "Test", text: "tests", created_at: "2017-01-17 20:01:14", updated_at: "2017-01-17 20:01:14">]
Tutorial code -
<h1>Listing articles</h1>
<table>
<tr>
<th>Title</th>
<th>Text</th>
</tr>
<% @articles.each do |article| %>
<tr>
<td><%= article.title %></td>
<td><%= article.text %></td>
<td><%= link_to 'Show', article_path(article) %></td>
</tr>
<% end %>
</table>
My code is this -
<div>
<%= @articles.each do |article| %>
<div>
<div>Title:</div>
<div><%= article.title %></div>
<div>Text:</div>
<div><%= article.text %></div>
<div><%= link_to 'Show', article_path(article) %></div>
</div>
<% end %>
</div>