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:   Errors in the end
Date:   2005-07-08 00:17:20
From:   PGomez
I have checked out your code and everything is both the exact same. What I am thinking is that it is something in the database maybe. I am getting two errors, one from each page, edit.rhtml and list.rhtml. From the edit page, I get this:


Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id


From the list page, I get this:


undefined method `name' for nil:NilClass


I have tried playing around with the database, but that is the only thing that I can see being wrong with this whole thing. Thanks so much!


1 to 3 of 3
  1. Errors in the end
    2005-08-09 18:10:55  jdmce [View]

  2. Errors in the end
    2005-07-27 12:09:43  acidbox [View]

    • Errors in the end
      2005-07-27 12:35:22  acidbox [View]

    • Curt Hibbs photo Errors in the end
      2005-07-27 12:32:34  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

  3. Curt Hibbs photo Errors in the end
    2005-07-08 07:46:22  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    • Errors in the end
      2005-07-08 13:24:40  PGomez [View]

      • Errors in the end
        2006-10-04 05:02:32  rudyOnTheTrain [View]

      • Errors in the end
        2005-10-21 08:41:49  kFuQ [View]

    • Errors in the end
      2005-07-08 12:26:24  PGomez [View]

      • Curt Hibbs photo Errors in the end
        2005-07-08 14:35:26  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

        • Errors in the end
          2005-07-15 12:55:06  zsmirnoff [View]

1 to 3 of 3