aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-07-23 12:14:10 +0200
committerXavier Noria <fxn@hashref.com>2011-07-23 12:14:10 +0200
commit38310ab1a6f559860e25b0e28bef9560bb452ae6 (patch)
tree7bba14b20d2870d8aebd3b6f52f458a77e6787b6 /actionpack/lib/action_view/helpers/form_helper.rb
parent2db9a7e930f44aeeda175458a475911c2fa33f40 (diff)
downloadrails-38310ab1a6f559860e25b0e28bef9560bb452ae6.tar.gz
rails-38310ab1a6f559860e25b0e28bef9560bb452ae6.tar.bz2
rails-38310ab1a6f559860e25b0e28bef9560bb452ae6.zip
little details seen while doing a pass through what's new in docrails
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index f378b92dd6..724fe7a518 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -860,8 +860,8 @@ module ActionView
end
# Returns an input of type "search" for accessing a specified attribute (identified by +method+) on an object
- # assigned to the template (identified by +object+). Inputs of type "search" may be styled differently by
- # some browsers
+ # assigned to the template (identified by +object_name+). Inputs of type "search" may be styled differently by
+ # some browsers.
#
# ==== Examples
#
@@ -880,7 +880,7 @@ module ActionView
# # => <input autosave="false" id="user_name" incremental="true" name="user[name]" onsearch="true" size="30" type="search" />
# search_field(:user, :name, :autosave => true, :onsearch => true)
# # => <input autosave="com.example.www" id="user_name" incremental="true" name="user[name]" onsearch="true" results="10" size="30" type="search" />
-
+ #
def search_field(object_name, method, options = {})
options = options.stringify_keys
@@ -902,7 +902,7 @@ module ActionView
#
# telephone_field("user", "phone")
# # => <input id="user_phone" name="user[phone]" size="30" type="tel" />
-
+ #
def telephone_field(object_name, method, options = {})
InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("tel", options)
end
@@ -912,7 +912,7 @@ module ActionView
#
# url_field("user", "homepage")
# # => <input id="user_homepage" size="30" name="user[homepage]" type="url" />
-
+ #
def url_field(object_name, method, options = {})
InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("url", options)
end
@@ -921,7 +921,7 @@ module ActionView
#
# email_field("user", "address")
# # => <input id="user_address" size="30" name="user[address]" type="email" />
-
+ #
def email_field(object_name, method, options = {})
InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("email", options)
end