ryanb/nested_form — pull request #171 by linko (2012-06-11 22:57:39+00:00)
Title: Added max count of nested fields

Sometimes I need to limit max count of nested fields user can add. Now you can just add data attribute to your main nested_form to do this. For example:
= simple_nested_form_for current_user, html: { data: { 'max-fields' => 5 } } do |f|