Ruby Plus #90: fields_for and the index option in Rails

Posted in Development, Frameworks on July 07, 2008


Ruby Plus #90: fields_for and the index option in Rails

In this episode you learn how to use fields_for and the index option to create a new parent model with multiple child models on one post.

This tip will simplify your code in the controller. Based on the blog post by params fu #3 and #5 by Stephen Chu.

Watch Video Watch Video on External Site

Tags: Ruby, Ruby On Rails, Frameworks, Ruby Plus, form_for, params