Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… in LH)
  • Loading branch information...
commit 1cbdab1c8298723c0c964d39fe10771deb5ba446 1 parent eb472d6
@fxn fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/form_helpers.textile
View
4 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>
Please sign in to comment.
Something went wrong with that request. Please try again.