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-27 12:35:22
From:   acidbox
Response to: Errors in the end

Fixed the problem.


Basically I had to change this:


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


to this:


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