# Content displaying below posts in "\[ \]"

**URL:** <https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357>\
**Category:** Rails\
**Created:** [April 22, 2010, 5:20am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357 "2010-04-22T05:20:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 22, 2010, 5:20am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357/1 "2010-04-22T05:20:00Z")

</div>

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 🙂 --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.

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 22, 2010, 5:40am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357/2 "2010-04-22T05:40:22Z")

</div>

Post your view code.

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 22, 2010, 5:40am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357/3 "2010-04-22T05:40:48Z")

</div>

# My Blog!
\<%= @posts.each do |post| %\>
## \<%= post.title %\>

 \<%= post.body %\> 
* * *

\<% end %\>

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 22, 2010, 5:43am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357/4 "2010-04-22T05:43:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mike343](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike343](https://www.ruby-forum.com/u/mike343)\
**Post date:** [April 22, 2010, 6:10am UTC](https://www.ruby-forum.com/t/content-displaying-below-posts-in/187357/5 "2010-04-22T06:10:13Z")

</div>

“Michael Michael” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in  
message news:removed\_email\_address@domain.invalid…

> 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. 😃
