@@ -253,7 +253,7 @@ The helper methods called on the form builder are identical to the model object
You can create a similar binding without actually creating +<form>+ tags with the +fields_for+ helper. This is useful for editing additional model objects with the same form. For example if you had a Person model with an associated ContactDetail model you could create a form for creating both like so:
<%form_for@person,:html => {:multipart=> true} do |f| %>
<%=form_for@person,:html => {:multipart=> true} do |f| %>
<%=f.file_field:picture%>
<%end%>
</erb>
...
...
@@ -591,7 +591,7 @@ h3. Customizing Form Builders
As mentioned previously the object yielded by +form_for+ and +fields_for+ is an instance of FormBuilder (or a subclass thereof). Form builders encapsulate the notion of displaying form elements for a single object. While you can of course write helpers for your forms in the usual way you can also subclass FormBuilder and add the helpers there. For example
<erb>
<%form_for@persondo|f|%>
<%=form_for@persondo|f|%>
<%=text_field_with_labelf,:first_name%>
<%end%>
</erb>
...
...
@@ -599,7 +599,7 @@ As mentioned previously the object yielded by +form_for+ and +fields_for+ is an