aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/form_helpers.textile
diff options
context:
space:
mode:
authorEvan Machnic <emachnic@broadmac.net>2011-07-19 14:46:24 -0400
committerEvan Machnic <emachnic@broadmac.net>2011-07-19 14:46:24 -0400
commitf1a239fd6d84f6e55d55411f3ebd77ffd67e664a (patch)
treeac8d29255e3f5d2bc29a20578801b217f2082f0c /railties/guides/source/form_helpers.textile
parent2f4d9ef34e5c70057a9fe9e96e6b1e45d6341497 (diff)
parent46be69a220cf1815320ecdd7595d8fa37dcb5fd5 (diff)
downloadrails-f1a239fd6d84f6e55d55411f3ebd77ffd67e664a.tar.gz
rails-f1a239fd6d84f6e55d55411f3ebd77ffd67e664a.tar.bz2
rails-f1a239fd6d84f6e55d55411f3ebd77ffd67e664a.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r--railties/guides/source/form_helpers.textile9
1 files changed, 4 insertions, 5 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index e10620272b..96a52af612 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -177,12 +177,12 @@ Other form controls worth mentioning are the text area, password input, hidden i
<%= password_field_tag(:password) %>
<%= hidden_field_tag(:parent_id, "5") %>
<%= search_field(:user, :name) %>
-<%= telephone_field(:user, :phone) %>
-<%= url_field(:user, "homepage) %>
+<%= telephone_field(:user, :phone) %>
+<%= url_field(:user, :homepage) %>
<%= email_field(:user, :address) %>
</erb>
-output:
+Output:
<html>
<textarea id="message" name="message" cols="24" rows="6">Hi, nice site</textarea>
@@ -194,8 +194,7 @@ output:
<input id="user_address" size="30" name="user[address]" type="email" />
</html>
-Hidden inputs are not shown to the user, but they hold data like any textual input. Values inside them can be changed with JavaScript. The search, tel, url and email inputs are specified in HTML5 and may receive special handling and/or formatting
-in some user-agents.
+Hidden inputs are not shown to the user, but they hold data like any textual input. Values inside them can be changed with JavaScript. The search, tel, url and email inputs are specified in HTML5 and may receive special handling and/or formatting in some user-agents.
TIP: If you're using password input fields (for any purpose), you might want to configure your application to prevent those parameters from being logged.