On 25 July 2016 at 10:00, Deepak Sharma <[email protected]> wrote: > 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.
Well if there is nothing in the database then why would you expect it to show something in the view? Colin -- 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/CAL%3D0gLtkje%3DriZ2va4C877VAf8V2cjdTL%3Det_YgmZLMSK3G4JQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

