Ruby Plus #90: fields_for and the index option in Rails
  • Video is free for view
  • Video is available for download
View_video

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.



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

Level: any Date: July 07, 2008 Votes: 0 User: Dmytro Shteflyuk  Comments:
 
 

No Response(s) to this entry

Subscribe to comments with RSS.