Returning empty value in each statement

In my application I'm rendering comment part with each statement but
getting an unusual response in it. An empty comment is always been
there. I'm using Rails 4 with materialize css. This is how looks [1]
like.

Here is my code

  <div class="s12 m7 l8 col">
    <ul class="collection with-header">

      <li class="collection-header">
        <h5>Comment's for you</h5>
      </li>

      <% @student.comments.each do |comment| %>
      <li class="collection-item">
        <!-- Content in single row -->
        <div>

          <%= comment.content %>

          <% if comment.user_id == current_user.id ||
current_user.try(:admin?) %>
            <%= link_to [comment.student, comment], method: :delete, class:
                    "secondary-content" do %>
              <i class="material-icons">delete</i>
            <% end %>
          <% end %>
        </div>
      </li>
      <% end %>
    </ul>
  </div>

[1] : http://www.awesomescreenshot.com/image/1422159/fbabde9acca44d7813726991a087eb40

You have not made it clear exactly what the problem is. Which line in
the above is not doing what you expect?

Colin

Problem is In below mentioned each statement part

<% @student.comments.each do |comment| %>
    <li class="collection-item">
      <div>

          <%= comment.content %>

        </div>
      </li>
  <% end %>

It's returning empty value, I checked it in database but nothing there.

Well if there is nothing in the database then why would you expect it
to show something in the view?

Colin