Permalink
Browse files

fix form builder example in form helpers guide (reported by JasonKing…

… in LH)
  • Loading branch information...
1 parent eb472d6 commit 1cbdab1c8298723c0c964d39fe10771deb5ba446 @fxn fxn committed Mar 2, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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>

0 comments on commit 1cbdab1

Please sign in to comment.