From 3384ee24adb1ac38fdadbb755523ffb9f6bda9cc Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 10 Mar 2012 23:30:39 +1300 Subject: Fixes #5324 by removing default size options from input:text and default cols and rows options from textarea. --- .../guides/source/action_view_overview.textile | 10 +++++----- railties/guides/source/form_helpers.textile | 22 +++++++++++----------- railties/guides/source/nested_model_forms.textile | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) (limited to 'railties/guides/source') 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")


- +


- +

@@ -451,7 +451,7 @@ For example, if +@post+ has an attribute +title+ mapped to a +String+ column tha input("post", "title") # => - + h4. RecordTagHelper @@ -987,8 +987,8 @@ The HTML generated for this would be:
- - + +
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index a696e4f8ae..6d9cd5440b 100644 --- a/railties/guides/source/form_helpers.textile +++ b/railties/guides/source/form_helpers.textile @@ -169,11 +169,11 @@ Output: - - + + - - + + Hidden inputs are not shown to the user but instead hold data like any textual input. Values inside them can be changed with JavaScript. @@ -239,7 +239,7 @@ The resulting HTML is:
- +
@@ -264,8 +264,8 @@ which produces the following output:
- - + +
@@ -714,9 +714,9 @@ Assuming the person had two addresses, with ids 23 and 45 this would create outp
- - - + + +
@@ -739,7 +739,7 @@ To create more intricate nestings, you can specify the first part of the input n will create inputs like - + As a general rule the final input name is the concatenation of the name given to +fields_for+/+form_for+, the index value and the name of the attribute. You can also pass an +:index+ option directly to helpers such as +text_field+, but it is usually less repetitive to specify this at the form builder level rather than on individual input controls. 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:
- +
@@ -153,9 +153,9 @@ This generates:
- + - +
@@ -194,10 +194,10 @@ Which generates:
- + - - + +
-- cgit v1.2.3