Rails: Nested resource scaffold

1 · Ariejan de Vroom · Jan. 23, 2007, midnight
In my previous post I told you about the resource scaffold. What you’ll be doing a lot is nesting these resources. Ingredients in recipes, comments on posts, options for products. You name it, you nest it! Since Rails does not automatically nest resources for you, you should do this yourself. This is, with some minor tweaks, really easy to accomplish. In this example I’ll create recipes that have multiple ingredients. I assume you have Rails 1.2.1 installed for this tutorial to work properly....