Ollzane Ollzane - 6 months ago 10
Ruby Question

Rails keeps putting text onto my page within {} and [], how do i get rid of this?

This is an example of the outputted text, when inspected using dev tools, it's listed under text

[#]

http://imgur.com/XLjAcPH

Answer

This is a typo error in the index.html.erb

<%= @posts.each do |post| %>

Should be

<% @posts.each do |post| %>