I’m trying to teach myself Ruby on Rails, and doing the infamous
Cookbook as a starting point. I’m all set until the point when I go to
create of sumbit my recipe and I get this error:
NoMethodError in Recipe#index
You have a nil object when you didn’t expect it!
The error occured while evaluating nil.name
15: <% @recipes.each do |recipe| %>
21: <% end %>
when I look in my MySQL database, the recipe is indeed in the db, but I
still get that error. Any help would be greatly appreciated.