aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-16 21:42:54 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-17 00:05:29 -0300
commit864d7575a3908f14ffc2830a6b2ea78a98756079 (patch)
tree40e4d95cc8aaeac5bf33d6b60146e699af0aafc2 /actionpack/lib/action_view/helpers/form_helper.rb
parent4cfdd238ed3bc7d4f54faab923dbceeeb7a4bced (diff)
downloadrails-864d7575a3908f14ffc2830a6b2ea78a98756079.tar.gz
rails-864d7575a3908f14ffc2830a6b2ea78a98756079.tar.bz2
rails-864d7575a3908f14ffc2830a6b2ea78a98756079.zip
Extract UrlField
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 0626ff4d85..110b6b433b 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -895,7 +895,7 @@ module ActionView
# # => <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)
+ ActionView::Helpers::Tags::UrlField.new(object_name, method, self, options).render
end
# Returns a text_field of type "email".