This is strange. I'm working on a simple comment system but it has a
fit when displaying the user names after the first time the page is
loaded. so if i start the webserver then go to the page everything
works fine but if i then refresh i get this error. if i remove the
user.login it works fine always. Also i have other places in the site
that show the Mode.user.login and they work fine
ActionView::TemplateError (You have a nil object when you didn't
You might have expected an instance of Array.
The error occurred while evaluating nil.include?) on line #12 of app/
11: <% @bid.comments.each do |comment| %>
12: <%= comment.user.login %>
13: <%= simple_format(comment.comment) %>
14: <% end %>
Any one got an idea of why this is happening? if i set the dev env to
cache classes then it has no problems..
config.cache_classes = true
Thanks for any help.