aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-03-02 09:28:39 +0100
committerXavier Noria <fxn@hashref.com>2009-03-02 09:28:39 +0100
commit1cbdab1c8298723c0c964d39fe10771deb5ba446 (patch)
tree88434cb79e9c9f19bf0c7e245a385eb028570689 /railties/guides/source
parenteb472d6d21a7f29d381e5df0c8d5163d5da778c6 (diff)
downloadrails-1cbdab1c8298723c0c964d39fe10771deb5ba446.tar.gz
rails-1cbdab1c8298723c0c964d39fe10771deb5ba446.tar.bz2
rails-1cbdab1c8298723c0c964d39fe10771deb5ba446.zip
fix form builder example in form helpers guide (reported by JasonKing in LH)
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/form_helpers.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index 41d8fba3dc..074aea300a 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -605,9 +605,9 @@ can be replaced with
by defining a LabellingFormBuilder class similar to the following:
<ruby>
-class LabellingFormBuilder < FormBuilder
+class LabellingFormBuilder < ActionView::Helpers::FormBuilder
def text_field(attribute, options={})
- label(attribute) + text_field(attribute, options)
+ label(attribute) + super
end
end
</ruby>