hungle00 / rondo_form

Same as Cocoon, but using StimulusJS https://rubygems.org/gems/rondo_form
MIT License
65 stars 4 forks source link

Allow using a different partial than the default `<association>_fields` #8

Closed viamin closed 6 months ago

viamin commented 6 months ago

Adds a :partial_name option which allows using a differently named partial.

Usage:

link_to_add_association "Add a new task", f, :tasks, partial_name: "task_dropdown"

which will use the _task_dropdown.html.erb partial instead of the default _task_fields.html.erb

hungle00 commented 6 months ago

That's a good change. Thank you!