On Mon, Jul 25, 2016 at 1:59 PM, Colin Law <[email protected]> wrote:
> You have not made it clear exactly what the problem is.  Which line in
> the above is not doing what you expect?

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.

-- 
Cheers!

Deepak Kumar Sharma
Guru Nanak Dev Engineering College
India!

Blog: http://deekysharma.wordpress.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CALDHwN6G_ODRZQyWdR--D6%3DdKcsfVwPuxaUDGAgfZa3YFo18mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to