On 29 June 2015 at 18:54, William de Lima <perfectbl...@gmail.com> wrote: > .. > ActionView::Template::Error (undefined method `name' for nil:NilClass): > 9: .pull-right > 10: = submit_tag t('news.comment'), class: 'btn btn-primary' > 11: .clearfix > 12: - unless @item.comments.any? > 13: #comment-composer= t('news.no_comments') > 14: - else > 15: - @comments.each do |comment| > app/views/news/show.html.haml:12:in > `_app_views_news_show_html_haml___3582658555150926440_64556152601540'
Is @item nil possibly? 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 rubyonrails-talk+unsubscr...@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/CAL%3D0gLsLzc4b8T%3DTsL%2B8Ynj0v%3DhXu%3Di%2BdGnsrNLEnTCdPPJ1zg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.