Ollzane Ollzane - 1 year ago 51
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 Source

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

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

Should be

<% @posts.each do |post| %>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download