We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Rolling with Ruby on Rails, Part 2
|
Subject: |
|
Error? |
Date: |
|
2005-05-13 21:31:07 |
From: |
|
boboroshi
|
|
Utilizing your new code download (which works) and following the first two steps, i run into this error after the category application:
NoMethodError in Recipe#new
Showing /recipe/new.rhtml where line #19 raised:
undefined method `each' for nil:NilClass
Extracted source (around line #19):
16:
17: Category:<br/>
18: <select name="recipe[category_id]">
19: <% @categories.each do |category| %>
20: <option value="<%= category.id %>">
21: <%= category.name %>
22: </option>
|
1 to 3 of 3
-
-
Error?
2007-01-27 16:02:59
endalk
[View]
-
-
Error?
2005-06-24 08:03:43
tjmcgee
[View]
-
-
Error?
2005-06-04 16:21:57
Meindert
[View]
1 to 3 of 3