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

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails, Part 2
Subject:   "Showing recipes in a category" code
Date:   2005-03-10 03:37:24
From:   curth
Response to: "Showing recipes in a category" code

Oops, you are correct, I should have written:

def list
@category_id = @params['category']
@recipes=Recipe.find_by_category_id(@category_id)
end

1 to 1 of 1
1 to 1 of 1