It's been about two weeks since I started programming.
NoMethodError in Todolists#index Showing /home/vagrant/work/sample_app/app/views/todolists/index.html.erb where line #2 raised:
undefined method `each' for nil:NilClass Extracted source (around line #2): 1NoMethodError in Todolists#index Showing /home/vagrant/work/sample_app/app/views/todolists/index.html.erb where line #2 raised:
undefined method `each' for nil:NilClass Extracted source (around line #2 1
Title </ p> 4 <%= list.title %> 5 <% end %>
I get an error like this and I don't know how to solve it.
I copied the text because I don't understand it too much, but it has not been passed.
Where should I review it?
Recommended Posts