Skip to content

Commit

Permalink
forgot to commit real changes in docs :(
Browse files Browse the repository at this point in the history
  • Loading branch information
fxposter committed Jun 21, 2011
1 parent 1c68681 commit 1e111a1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.rdoc
Expand Up @@ -12,7 +12,9 @@ For some reasons, in this fork the main branch is now 'unstable'. In order to us

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

Added simple_form and formtastic support. Now if you add
=== Simple Form and Formtastic support

Now if you add

gem 'simple_form'

Expand All @@ -22,13 +24,19 @@ or

you will be able to use simple_nested_form_for and semantic_nested_form_for respectively.

=== Enhanced jQuery javascript template

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));
}

=== Rails 3.1 support (asset pipeline is not yet supported)

There's a small fix for Rails 3.1 form handling.
Also support of Rails 3.1 led me to huge refactor of specs setup (now using Helper specs from rspec-rails instead of custom implementation spec context).
Last, but not least - I used appraisal[https://github.com/thoughtbot/appraisal] gem to run specs for rails 3 and 3.1.

== Setup

Expand Down

0 comments on commit 1e111a1

Please sign in to comment.