Skip to content

Commit

Permalink
fix form builder example in form helpers guide (reported by JasonKing…
Browse files Browse the repository at this point in the history
… in LH)
  • Loading branch information
fxn committed Mar 2, 2009
1 parent eb472d6 commit 1cbdab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/form_helpers.textile
Expand Up @@ -605,9 +605,9 @@ can be replaced with
by defining a LabellingFormBuilder class similar to the following: by defining a LabellingFormBuilder class similar to the following:


<ruby> <ruby>
class LabellingFormBuilder < FormBuilder class LabellingFormBuilder < ActionView::Helpers::FormBuilder
def text_field(attribute, options={}) def text_field(attribute, options={})
label(attribute) + text_field(attribute, options) label(attribute) + super
end end
end end
</ruby> </ruby>
Expand Down

0 comments on commit 1cbdab1

Please sign in to comment.