× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

the cocoon gem is a nice solution to dynamically add/remove nested form fields

David Lowenfels
Mar 10, 2015
<p>https://github.com/nathanvda/cocoon</p> <p>the cocoon gem is a nice solution to dynamically add/remove nested form fields, giving you two helper methods and some javascript callbacks.</p> <h3>#link_to_add_association</h3> <h3>#link_to_remove_association</h3> <p>Cocoon is form builder-agnostic, so it works with standard Rails, <a href="https://github.com/justinfrench/formtastic">Formtastic</a>, or <a href="https://github.com/plataformatec/simple_form">SimpleForm</a>. It is compatible with rails 3 and rails 4.</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus