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.

<h1>My Blog!</h1> <%= @posts.each do |post| %> <h2><%= post.title %></h2> <div class="entry">   <%= post.body %>   <hr /> </div> <% 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" <lists@ruby-forum.com> wrote in message news:fce2a0ce9e610603f85b4cff455f6153@ruby-forum.com...

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: