Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Conversation

robertwbradford
Copy link

Allow for a :partial option when not using a block in fields_for. Useful when you want to use something besides the "#{association_name.to_s.singularize}fields" partial. For example, if you have a polymorphic association in which the nested fields would be the same throughout the application. It's cleaner than the suggestion here: #167

You simply use something like <%= f.fields_for :tasks, partial: 'tasks/fields' %>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant