I worked my way through the FormBuilder example in the Agile Web
Development With Rails book, but I now have some questions about
applying this idea to other situations.
The example seems to work well for the case where I am using form_for
to have a single form with fields that relate to attributes of a
How can I use my custom FormBuilder for other situations? Examples:
1. Non-model fields added to form_for model form.
2. Fields for other models added using fields_for.
3. Non-model fields used for non-model forms (just using form_tag)
It seems like the main benefit of using a custom FormBuilder is to
enforce a consistent look across forms. It would be great to extend
this to include all my forms, not just model-based forms.