From f5599826d4e88f9ae991a5a515668d241bff9325 Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Sat, 29 Jun 2013 20:25:00 +0530 Subject: doc for more input tag types --- guides/source/action_view_overview.md | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'guides/source/action_view_overview.md') 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) # => ``` +#### email_field + +Returns an input tag of the "email" type tailored for accessing a specified attribute. + +```ruby +email_field(:user, :email) +# => +``` + +#### url_field + +Returns an input tag of the "url" type tailored for accessing a specified attribute. + +```ruby +url_field(: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' # => ``` +#### email_field_tag + +Creates a standard input field of email type. + +```ruby +email_field_tag 'email' +# => +``` + +#### url_field_tag + +Creates a standard input field of url type. + +```ruby +url_field_tag 'url' +# => +``` + #### date_field_tag Creates a standard input field of date type. -- cgit v1.2.3