diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-01-13 19:15:16 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-01-13 19:15:16 +0000 |
commit | 6cf71be0ae6f4dc9b6f4a540e48fed9be43a3f09 (patch) | |
tree | 615a637af063cac3ba7601054faabd7658cb7622 /guides/source | |
parent | 275111f699e0682712b12c00bd4c53bdd1e30c1f (diff) | |
parent | b5c1bbbee01f64532d0cbc236ed364f1b0589a1a (diff) | |
download | rails-6cf71be0ae6f4dc9b6f4a540e48fed9be43a3f09.tar.gz rails-6cf71be0ae6f4dc9b6f4a540e48fed9be43a3f09.tar.bz2 rails-6cf71be0ae6f4dc9b6f4a540e48fed9be43a3f09.zip |
Merge pull request #18491 from dreeve/form-for-guide-fix-generated-action
Fix form_for guide binding a form to an object. [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/form_helpers.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index a8dcd3ee4f..4ec3a7c010 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -275,7 +275,7 @@ There are a few things to note here: The resulting HTML is: ```html -<form accept-charset="UTF-8" action="/articles/create" method="post" class="nifty_form"> +<form accept-charset="UTF-8" action="/articles" method="post" class="nifty_form"> <input id="article_title" name="article[title]" type="text" /> <textarea id="article_body" name="article[body]" cols="60" rows="12"></textarea> <input name="commit" type="submit" value="Create" /> @@ -300,7 +300,7 @@ You can create a similar binding without actually creating `<form>` tags with th which produces the following output: ```html -<form accept-charset="UTF-8" action="/people/create" class="new_person" id="new_person" method="post"> +<form accept-charset="UTF-8" action="/people" class="new_person" id="new_person" method="post"> <input id="person_name" name="person[name]" type="text" /> <input id="contact_detail_phone_number" name="contact_detail[phone_number]" type="text" /> </form> |