Registry / web-framework / nested-form

nested-form

JSON →
library0.3.2rbrubygemsunverified

Gem to conveniently handle multiple models in a single form with Rails 3 and jQuery or Prototype.

gem install nested_form
INSTALL
IMPORT
SIG · NESTED-FORM
N
nested-form
web-frameworkrubyv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NestedForm
require 'nested_form'

Add and remove nested model fields dynamically in Rails forms.

require 'nested_form' # In your view: <%= nested_form_for @post do |f| %> # <%= f.fields_for :comments do |c| %> # <%= c.text_area :body %> # <% end %> # <%= f.link_to_add "Add Comment", :comments %> # <% end %>
Debug
Known issues
gotchaRequires jQuery or Prototype JavaScript library; not compatible with Rails 5+ default UJS without additional setup.
fix
Use cocoon gem or Rails native nested attributes with JavaScript framework of choice.
affects: >= 0.3.2
Upgrade
Version history
0.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nested-form — gem install nested-form · libregistry