Ollzane Ollzane - 2 years ago 63
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



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