aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/nested_model_forms.textile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-03-11 15:04:23 -0700
committerJosé Valim <jose.valim@gmail.com>2012-03-11 15:04:23 -0700
commit6c0d5a19a4e97be3d004997f6547ec19e6a22363 (patch)
treea1a93cce7901e3a2ef9ac823523023f99eb5ae9c /railties/guides/source/nested_model_forms.textile
parentd6ec3f0898fb234e5cd95747d7d20bf45b33d890 (diff)
parentf12f071ece7c15ec91d96dd92e897eb68d4d355a (diff)
downloadrails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.tar.gz
rails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.tar.bz2
rails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.zip
Merge pull request #5366 from parndt/fix_issue_5324
Fixes #5324 by removing default size options from input:text and default cols and rows options from textarea.
Diffstat (limited to 'railties/guides/source/nested_model_forms.textile')
-rw-r--r--railties/guides/source/nested_model_forms.textile12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/guides/source/nested_model_forms.textile b/railties/guides/source/nested_model_forms.textile
index 4b1fd2e0ac..82c9ab9d36 100644
--- a/railties/guides/source/nested_model_forms.textile
+++ b/railties/guides/source/nested_model_forms.textile
@@ -131,7 +131,7 @@ This will generate the following html:
<html>
<form action="/people" class="new_person" id="new_person" method="post">
- <input id="person_name" name="person[name]" size="30" type="text" />
+ <input id="person_name" name="person[name]" type="text" />
</form>
</html>
@@ -153,9 +153,9 @@ This generates:
<html>
<form action="/people" class="new_person" id="new_person" method="post">
- <input id="person_name" name="person[name]" size="30" type="text" />
+ <input id="person_name" name="person[name]" type="text" />
- <input id="person_address_attributes_street" name="person[address_attributes][street]" size="30" type="text" />
+ <input id="person_address_attributes_street" name="person[address_attributes][street]" type="text" />
</form>
</html>
@@ -194,10 +194,10 @@ Which generates:
<html>
<form action="/people" class="new_person" id="new_person" method="post">
- <input id="person_name" name="person[name]" size="30" type="text" />
+ <input id="person_name" name="person[name]" type="text" />
- <input id="person_projects_attributes_0_name" name="person[projects_attributes][0][name]" size="30" type="text" />
- <input id="person_projects_attributes_1_name" name="person[projects_attributes][1][name]" size="30" type="text" />
+ <input id="person_projects_attributes_0_name" name="person[projects_attributes][0][name]" type="text" />
+ <input id="person_projects_attributes_1_name" name="person[projects_attributes][1][name]" type="text" />
</form>
</html>