ActionView::TemplateError (You have a nil object when you didn't
expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?) on line #2 of app/
views/comments/_comment.html.erb:
1: <%div_for(comment) do %>
2:      <div id="comment_user"><%= comment.user.username %><div
class="time"><%= time_ago(comment.created_at)%></div></div>
3:      <div id="message"><%= comment.body %></div>
4:      <div class="cvote_area">


I have tested it in the console and you are right.... I can call
comment.user there. I am getting this error however when I try and do
it the view.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to