Rails NoMethodError in Lists#index [on hold]
Clash Royale CLAN TAG#URR8PPP
up vote
-3
down vote
favorite
I am building my rails app and I am encountering the following problem:
undefined method `each' for nil:NilClass
This is my path:
/home/rails/example/app/views/lists/index.html.erb
This is my source code from that file:
</tr>
<% @list.each do |list| %>
<tr>
<td><%= list.title %></td>
<td><%= list.text %></td>
I think I need to define "List", but I don't know where to go to define it.
ubuntu ruby rails
put on hold as off-topic by Jeff Schaller, Thomas, Goro, RalfFriedl, Romeo Ninov yesterday
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
add a comment |Â
up vote
-3
down vote
favorite
I am building my rails app and I am encountering the following problem:
undefined method `each' for nil:NilClass
This is my path:
/home/rails/example/app/views/lists/index.html.erb
This is my source code from that file:
</tr>
<% @list.each do |list| %>
<tr>
<td><%= list.title %></td>
<td><%= list.text %></td>
I think I need to define "List", but I don't know where to go to define it.
ubuntu ruby rails
put on hold as off-topic by Jeff Schaller, Thomas, Goro, RalfFriedl, Romeo Ninov yesterday
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
add a comment |Â
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
I am building my rails app and I am encountering the following problem:
undefined method `each' for nil:NilClass
This is my path:
/home/rails/example/app/views/lists/index.html.erb
This is my source code from that file:
</tr>
<% @list.each do |list| %>
<tr>
<td><%= list.title %></td>
<td><%= list.text %></td>
I think I need to define "List", but I don't know where to go to define it.
ubuntu ruby rails
I am building my rails app and I am encountering the following problem:
undefined method `each' for nil:NilClass
This is my path:
/home/rails/example/app/views/lists/index.html.erb
This is my source code from that file:
</tr>
<% @list.each do |list| %>
<tr>
<td><%= list.title %></td>
<td><%= list.text %></td>
I think I need to define "List", but I don't know where to go to define it.
ubuntu ruby rails
ubuntu ruby rails
asked yesterday
Cody Rutscher
338
338
put on hold as off-topic by Jeff Schaller, Thomas, Goro, RalfFriedl, Romeo Ninov yesterday
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
put on hold as off-topic by Jeff Schaller, Thomas, Goro, RalfFriedl, Romeo Ninov yesterday
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes