Skip to content
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 6e09ea9 commit 3a82a92344bcab815d7b8ddbf36c20662b90f030 @threedaymonk threedaymonk committed with fxn
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_helper.rb
View
4 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 3a82a92

Please sign in to comment.
Something went wrong with that request. Please try again.