Nested Forms With JQuery

by woody2shoes on April 6, 2010

Ruby on Rails allows you to nest models within a form. Ryan Bates of Railscasts demonstrated how to set up these forms with JavaScript using the Prototype framework, which ships with Rails.

In this episode, Charles Max Wood gives a brief overview of how Ryan’s code works, and then refactors the JavaScript to use JQuery.

Ryan Bates demonstrated how to build a form with nested attributes in Ruby on Rails with Prototype. This screencast demonstrates how to refactor that form into usage of jQuery.
Download 88.4 MB
Download (iphone & ipod) 40.7 MB

  • http://teachmetocode.com Charles Max Wood

    I realized after recording this that Ryan has different branches for different implementations. Check out the other branches on Ryan’s complex-models-forms github repo to get unobtrusive JQuery among other things.

  • woody2shoes

    I realized after recording this that Ryan has different branches for different implementations. Check out the other branches on Ryan's complex-models-forms github repo to get unobtrusive JQuery among other things.

Previous post:

Next post: