diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-09 13:53:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-09 13:53:47 +0000 |
commit | 5a4846a0d385b54e8ba1c974bf8c4de29fb49ea5 (patch) | |
tree | 2127f5dfca8ec3e8cf5b5546f5b15b4c12e07c0d /actionpack/lib/action_view/helpers/url_helper.rb | |
parent | 6526adcff9110419b15440139652d1192f269db5 (diff) | |
download | rails-5a4846a0d385b54e8ba1c974bf8c4de29fb49ea5.tar.gz rails-5a4846a0d385b54e8ba1c974bf8c4de29fb49ea5.tar.bz2 rails-5a4846a0d385b54e8ba1c974bf8c4de29fb49ea5.zip |
Added TagHelper#image_tag and deprecated UrlHelper#link_image_to (recommended approach is to combine image_tag and link_to instead)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 137cfe58ab..609de9deed 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -52,6 +52,9 @@ module ActionView # Examples: # link_image_to "logo", { :controller => "home" }, :alt => "Homepage", :size => "45x80" # link_image_to "delete", { :action => "destroy" }, :size => "10x10", :confirm => "Are you sure?", "class" => "admin" + # + # NOTE: This tag is deprecated. Combine the link_to and image_tag yourself instead, like: + # link_to(image_tag("rss", :size => "30x45", :border => 0), "http://www.example.com") def link_image_to(src, options = {}, html_options = {}, *parameters_for_method_reference) image_options = { "src" => src.include?("/") ? src : "/images/#{src}" } image_options["src"] += ".png" unless image_options["src"].include?(".") |