aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_view_overview.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-07-06 00:08:40 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-07-06 00:08:40 +0530
commit69e7e6ba89cb1f6aef60d5a446a68785a867c9dd (patch)
tree15200daf24d8d2e35a3dfada429381816a944d9c /guides/source/action_view_overview.md
parent3f05f09b5de2808387c3eadd913f227533124a77 (diff)
parent9bcc2bb6fa2919bd43fa32a38c415da9023d36a8 (diff)
downloadrails-69e7e6ba89cb1f6aef60d5a446a68785a867c9dd.tar.gz
rails-69e7e6ba89cb1f6aef60d5a446a68785a867c9dd.tar.bz2
rails-69e7e6ba89cb1f6aef60d5a446a68785a867c9dd.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides/source/action_view_overview.md')
-rw-r--r--guides/source/action_view_overview.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index b3fc61f386..bdb51d881d 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -1006,6 +1006,24 @@ text_field(:post, :title)
# => <input type="text" id="post_title" name="post[title]" value="#{@post.title}" />
```
+#### email_field
+
+Returns an input tag of the "email" type tailored for accessing a specified attribute.
+
+```ruby
+email_field(:user, :email)
+# => <input type="email" id="user_email" name="user[email]" value="#{@user.email}" />
+```
+
+#### url_field
+
+Returns an input tag of the "url" type tailored for accessing a specified attribute.
+
+```ruby
+url_field(:user, :url)
+# => <input type="url" id="user_url" name="user[url]" value="#{@user.url}" />
+```
+
### FormOptionsHelper
Provides a number of methods for turning different kinds of containers into a set of option tags.
@@ -1372,6 +1390,24 @@ text_field_tag 'name'
# => <input id="name" name="name" type="text" />
```
+#### email_field_tag
+
+Creates a standard input field of email type.
+
+```ruby
+email_field_tag 'email'
+# => <input id="email" name="email" type="email" />
+```
+
+#### url_field_tag
+
+Creates a standard input field of url type.
+
+```ruby
+url_field_tag 'url'
+# => <input id="url" name="url" type="url" />
+```
+
#### date_field_tag
Creates a standard input field of date type.