Ruby on Rails Monday, July 25, 2016

On Mon, Jul 25, 2016 at 1:59 PM, Colin Law <clanlaw@gmail.com> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.

No comments:

Post a Comment