Skip to content

Commit

Permalink
docs about changes in this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fxposter committed Jun 21, 2011
1 parent fd2e2bc commit 1c68681
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ An example project showing how this works is available in the {complex-nested-fo

== Changes in this repo

Added simple_form support. Now if you add
For some reasons, in this fork the main branch is now 'unstable'. In order to use this branch in your projects - the following line in Gemfile should look like this:

gem 'nested_form', :git => 'git://github.com/fxposter/nested_form.git', :branch => 'unstable'

Added simple_form and formtastic support. Now if you add

gem 'simple_form'

or

gem 'formtastic'

before adding this gem to your Gemfile - nested_form_for will use SimpleForm builder instead of default ActionView builder.
you will be able to use simple_nested_form_for and semantic_nested_form_for respectively.

Also you can override default behavior of inserting new subforms into your form (jQuery-only feature, sorry). For example:

window.nestedFormEvents.insertFields = function(content, assoc, link) {
return $(link).closest('form').find(assoc + '_fields').append($(content));
}



== Setup

Expand Down

0 comments on commit 1c68681

Please sign in to comment.