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:   recipe.category.name does not work for me
Date:   2005-02-07 10:36:54
From:   pbihari
The line <%= recipe.category.name %> does not work for me. I get the following error:

Showing /recipe/list.rhtml where line #18 raised undefined method `name' for nil:NilClass

1 to 1 of 1
  1. Curt Hibbs photo recipe.category.name does not work for me
    2005-02-07 11:45:53  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    • recipe.category.name does not work for me
      2007-02-14 18:01:44  aussierob [View]

    • recipe.category.name does not work for me
      2005-02-09 01:59:22  pbihari [View]

      • Curt Hibbs photo recipe.category.name does not work for me
        2005-02-09 03:17:07  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

        • recipe.category.name does not work for me
          2005-02-09 04:55:59  pbihari [View]

          • Curt Hibbs photo recipe.category.name does not work for me
            2005-02-09 05:43:08  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

            • recipe.category.name does not work for me
              2005-02-09 06:14:22  pbihari [View]

1 to 1 of 1