Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when form_for is used with custom builder don't expect association_na…
…me to be passed as option This way you can use: f.form_for :books, builder: Books::FormBuilder do |ff| ff.title and in Books::FormBuilder you can create method #render_title (no association in between render and title parts). This allows you to reuse form builder to render single book for example, or simply split form builder into many smaller form builders.
- Loading branch information