mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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.
This commit is contained in:
@@ -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>.
|
||||
|
||||
Reference in New Issue
Block a user