Permalink
Browse files

Update form helper documentation to match code.

Change d3cfee1 removed the automatically generated object_name_submit id attributes on form submit elements. This makes the documentation match.
  • Loading branch information...
1 parent 51df7ca commit 01c2a989f1dcd717e683b89ef99b03511cc55c46 @threedaymonk threedaymonk committed Jul 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_helper.rb
@@ -49,7 +49,7 @@ module Helpers
# <label for="person_last_name">Last name</label>:
# <input id="person_last_name" name="person[last_name]" size="30" type="text" /><br />
#
- # <input id="person_submit" name="commit" type="submit" value="Create Person" />
+ # <input name="commit" type="submit" value="Create Person" />
# </form>
#
# As you see, the HTML reflects knowledge about the resource in several spots,
@@ -80,7 +80,7 @@ module Helpers
# <label for="person_last_name">Last name</label>:
# <input id="person_last_name" name="person[last_name]" size="30" type="text" value="Smith" /><br />
#
- # <input id="person_submit" name="commit" type="submit" value="Update Person" />
+ # <input name="commit" type="submit" value="Update Person" />
# </form>
#
# Note that the endpoint, default values, and submit button label are tailored for <tt>@person</tt>.

0 comments on commit 01c2a98

Please sign in to comment.