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


AddThis Social Bookmark Button
  Rolling with Ruby on Rails, Part 2
Subject:   "Showing recipes in a category" code
Date:   2005-03-04 16:56:48
From:   petercooper
Response to: "Showing recipes in a category" code

Not sure why there's a ? in there, as I copy and pasted from something I said on IRC :-) But anyway it should be something like:

@recipes = Category.find(@params['category']?).recipes

1 to 2 of 2
1 to 2 of 2