aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/nested_model_forms.textile
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-03-10 23:30:39 +1300
committerPhilip Arndt <parndt@gmail.com>2012-03-10 23:30:39 +1300
commit3384ee24adb1ac38fdadbb755523ffb9f6bda9cc (patch)
tree344db0e634ee1113ee3cf5067064438452b46b95 /railties/guides/source/nested_model_forms.textile
parent3e776496d0a85942b65935e69ba63f1d1b5f18fc (diff)
downloadrails-3384ee24adb1ac38fdadbb755523ffb9f6bda9cc.tar.gz
rails-3384ee24adb1ac38fdadbb755523ffb9f6bda9cc.tar.bz2
rails-3384ee24adb1ac38fdadbb755523ffb9f6bda9cc.zip
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>