aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/action_view_overview.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/action_view_overview.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/action_view_overview.textile')
-rw-r--r--railties/guides/source/action_view_overview.textile10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile
index f007629207..42120e9bad 100644
--- a/railties/guides/source/action_view_overview.textile
+++ b/railties/guides/source/action_view_overview.textile
@@ -431,11 +431,11 @@ form("post")
<form action='/posts/create' method='post'>
<p>
<label for="post_title">Title</label><br />
- <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" />
+ <input id="post_title" name="post[title]" type="text" value="Hello World" />
</p>
<p>
<label for="post_body">Body</label><br />
- <textarea cols="40" id="post_body" name="post[body]" rows="20"></textarea>
+ <textarea id="post_body" name="post[body]"></textarea>
</p>
<input name="commit" type="submit" value="Create" />
</form>
@@ -451,7 +451,7 @@ For example, if +@post+ has an attribute +title+ mapped to a +String+ column tha
<ruby>
input("post", "title") # =>
- <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" />
+ <input id="post_title" name="post[title]" type="text" value="Hello World" />
</ruby>
h4. RecordTagHelper
@@ -987,8 +987,8 @@ The HTML generated for this would be:
<html>
<form action="/persons/create" method="post">
- <input id="person_first_name" name="person[first_name]" size="30" type="text" />
- <input id="person_last_name" name="person[last_name]" size="30" type="text" />
+ <input id="person_first_name" name="person[first_name]" type="text" />
+ <input id="person_last_name" name="person[last_name]" type="text" />
<input name="commit" type="submit" value="Create" />
</form>
</html>