Content displaying below posts in "[ ]"

I am running into this issue, I am a super newbie when it comes to ruby
on rails, mysql. I am a front-end developer trying to get into more of a
MVC type structured language, and ruby on rails seemed like the one.

Here is the issue I am having.

I have created a post through rails c

i go back to browser localhost:3000/posts and it displays

My Blog! --this is the blog title

Hello Blog! --this is the post title

Hi guys! This is my first entry :slight_smile: --this is the body content

NOT SURE WHAT THIS IS BELOW AND HOW TO STOP IT FROM APPEARING. I was
wondering if it was some kind of debugging system. I have no clue. Would
love the help.

[#<Post id: 1, title: “Hello Blog!”, body: “Hi guys! This is my first
entry :)”, created_at: “2010-04-22 03:10:34”, updated_at: “2010-04-22
03:10:34”>]

Thank you.

Post your view code.

My Blog!

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

<%= post.title %>

<%= post.body %>
<% end %>

I think i found the problem I had

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

instead of

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

I just realized that, because having <%= outputs right?

Thanks for responding, I appreciate it.

“Michael Michael” [email protected] wrote in
message news:[email protected]…

I think i found the problem I had

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

instead of

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

I just realized that, because having <%= outputs right?

Yep, that sure sounds like that would be the problem. :smiley: