Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Mar 26, 2011
1 parent b136a38 commit cbedfb9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
= Nested Form

This branch is for Rails 2 and no longer maintained. Instead use the {master branch}[https://github.com/ryanb/nested_form] with Rails 3.

A Rails plugin to conveniently manage multiple nested models in a single form. It does so in an unobtrusive way through jQuery.

This is in early development, so some of this documentation is not yet applicable.
Expand All @@ -8,7 +10,7 @@ This is in early development, so some of this documentation is not yet applicabl

This is currently only available as a plugin.

script/plugin install git://github.com/ryanb/nested_form.git
script/plugin install git://github.com/ryanb/nested_form.git -r rails2


== Usage
Expand All @@ -32,15 +34,6 @@ Use this form just like normal, including the fields_for helper method for nesti
This generates links which dynamically add and remove fields.


== Partials

It is often desirable to move the nested fields into a partial to keep things organized. If you don't supply a block to fields_for it will look for a partial and use that.

<%= f.fields_for :tasks %>

In this case it will look for a partial called "task_fields" and pass the form builder as an f variable to it.


== Special Thanks

This plugin is based on the solution by Tim Riley in his complex-form-examples fork.
Expand Down

0 comments on commit cbedfb9

Please sign in to comment.