vendredi 12 juillet 2019

how to fix undefined method 'each ' for nil:class

I need some help about this error.i check evrything such mi index,and my controller but i still get the same error :NoMethodError in Articles#index undefined method 'each' for nil;class

<% @articles.each do | article | %>

  <td><%= article.title %></td>

Aucun commentaire:

Enregistrer un commentaire