I have a feeling you are looping in the view with something like <%= posts.each do |post| %>
if you remove the =
such as <% posts.each do |post| %>
the data will no longer be displayed.
In very simplified terms:
<%=
means display this data. each
will return the original object so you are telling it to display this object. <%
means do this but don’t display.
1
solved Why is the objects data being displayed? [closed]