diff options
author | Paul Battley <pbattley@gmail.com> | 2011-07-19 18:17:03 +0100 |
---|---|---|
committer | Paul Battley <pbattley@gmail.com> | 2011-07-19 20:31:19 +0100 |
commit | 01c2a989f1dcd717e683b89ef99b03511cc55c46 (patch) | |
tree | e5b18808dd1d230ff35757d9c475bd3b2a9b0965 | |
parent | 51df7cac8f3813d27439df7bb3a8b179be4de917 (diff) | |
download | rails-01c2a989f1dcd717e683b89ef99b03511cc55c46.tar.gz rails-01c2a989f1dcd717e683b89ef99b03511cc55c46.tar.bz2 rails-01c2a989f1dcd717e683b89ef99b03511cc55c46.zip |
Update form helper documentation to match code.
Change d3cfee11 removed the automatically generated object_name_submit id attributes on form submit elements. This makes the documentation match.
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 5b41750b52..f378b92dd6 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -49,7 +49,7 @@ module ActionView # <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 ActionView # <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>. |