ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   Action Control:Exception caught
Date:   2006-03-30 07:53:04
From:   doori
I am a new Ruby User and started working with it previously. As I tried to finish the first tutorial I caught this exception:
You have a nil object when you didn't expect it!


The error occured while evaluating nil.name
...on line #18:
<td><%= recipe.category.name %></td>


I had a look at the previous posts, but didn't find a suitable solution.
Did anyone have the same error and can help me to figure it out?


thx!


1 to 1 of 1
  1. Curt Hibbs photo Action Control:Exception caught
    2006-03-30 07:58:35  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1