cocoon
cocoon copied to clipboard
Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
I am facing an issue with loading the edit page where the parent has thousands of nested children it breaks the page while rendering the HTML. the query is already...
@nathanvda following up on https://github.com/nathanvda/cocoon/issues/568#issuecomment-1189843826 in a separate issue as requested. In my case, I want to allow a user to add or remove items to a column that is...
Hey! 👋 Would it be possible to release the 1.2.15 version on NPM? The current version is 1.2.14: https://www.npmjs.com/package/@nathanvda/cocoon
Since June 15th, 2021, the building on [travis-ci.org](http://www.travis-ci.org/) is ceased. This PR adds GitHub Actions workflows. Here are the details: - Tests were being run on multiple patch versions(like 2.4.1,...
At the company I work for we've been using Cocoon for more than 2 years now. Thanks @nathanvda and everyone that contributed! 👏 We recently migrated to Rails 5.1 and...
Hey, Nathan! I'm attempting to use Cocoon's dynamic goodness with a very simple demo project that consists of 3 models. The only problem I'm running into is that my tables...
### Gemfile ``` gem 'cocoon' ``` ### _form.html.erb ``` ``` ### _question_options_fields.html.erb ``` ``` ### JS is ``` $('#question_options') .on('cocoon:before-remove', function(e, task) { if($('#question_options').find('input[type="text"]').length
Foo has_one Bar (optional) Creating a foo with a Bar works correctly However -merely showing the edit form causes the associated bar to be deleted steps: 1) create Foo with...
Hi! I'd very much like to have a button in place of a link for the remove association action. The link-as-button doesn't link anywhere and it does an action. It...