aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2009-01-19 11:46:52 +0000
committerFrederick Cheung <frederick.cheung@gmail.com>2009-01-19 11:47:25 +0000
commit41af666fb8537bf47d5f63d56ce41ddfcaace2fe (patch)
treec9f797de1f32bd48e21d5571462f82a178f652eb
parent1e550ccd0d5827bf7cf8de4c5b92938a9fabc96f (diff)
downloadrails-41af666fb8537bf47d5f63d56ce41ddfcaace2fe.tar.gz
rails-41af666fb8537bf47d5f63d56ce41ddfcaace2fe.tar.bz2
rails-41af666fb8537bf47d5f63d56ce41ddfcaace2fe.zip
Fix asciidoc formating
-rw-r--r--railties/doc/guides/source/form_helpers.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt
index 804363aa3d..f4039070dd 100644
--- a/railties/doc/guides/source/form_helpers.txt
+++ b/railties/doc/guides/source/form_helpers.txt
@@ -584,7 +584,7 @@ Dealing with Ajax
Unlike other forms making an asynchronous file upload form is not as simple as replacing `form_for` with `remote_form_for`. With an AJAX form the serialization is done by javascript running inside the browser and since javascript cannot read files from your hard drive the file cannot be uploaded. The most common workaround is to use an invisible iframe that serves as the target for the form submission.
Customising 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 a 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