aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2009-01-19 02:01:23 +0000
committerFrederick Cheung <frederick.cheung@gmail.com>2009-01-19 02:01:23 +0000
commitb9efc8a0ce7d864666d01c7099f263c70b170793 (patch)
tree7e343f17b877ac21158f8abe169832970229f867 /railties/doc/guides
parenta0b2223740165bb95057f8dc07f3de352508701b (diff)
downloadrails-b9efc8a0ce7d864666d01c7099f263c70b170793.tar.gz
rails-b9efc8a0ce7d864666d01c7099f263c70b170793.tar.bz2
rails-b9efc8a0ce7d864666d01c7099f263c70b170793.zip
rename some sections
Diffstat (limited to 'railties/doc/guides')
-rw-r--r--railties/doc/guides/source/form_helpers.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt
index 4f956b099c..04c6f99349 100644
--- a/railties/doc/guides/source/form_helpers.txt
+++ b/railties/doc/guides/source/form_helpers.txt
@@ -486,8 +486,8 @@ There is also `time_zone_options_for_select` helper for a more manual (therefore
Rails _used_ to have a `country_select` helper for choosing countries but this has been extracted to the http://github.com/rails/country_select/tree/master[country_select plugin]. When using this do be aware that the exclusion or inclusion of certain names from the list can be somewhat controversial (and was the reason this functionality was extracted from rails).
-Date and time select boxes
---------------------------
+Using Date and Time Form Helpers
+--------------------------------
The date and time helpers differ from all the other form helpers in two important respects:
@@ -581,7 +581,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.
-Form builders
+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