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


AddThis Social Bookmark Button
  Rolling with Ruby on Rails
Subject:   Errors in the end
Date:   2005-07-08 13:24:40
From:   PGomez
Response to: Errors in the end

To get past the list.rhtml page, I omitted the line 18 that states

<td><%= recipe.category.name %></td>

Now it enables me to see the page, but still is not doing me any good since it did not solve the problem. With that, on the edit.rhtml I changed line 24 to:

<%= 'selected' if category.id == @recipe.category_id %>>

Instead of:

<%= 'selected' if category.id == @recipe.category.id %>>

Does that make sense with that second change? Thanks!

1 to 2 of 2
  1. Errors in the end
    2006-10-04 05:02:32  rudyOnTheTrain [View]

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

1 to 2 of 2