I don't understand the question.

In Rails 3 link_to does NOT escape the HTML produced by image_tag,
because the strings returned by these builtin helpers are marked as
html_safe:

    ∵ cat app/controllers/test_controller.rb
    class TestController < ApplicationController
      def index
        render :inline => '<%= link_to image_tag("foo") %>'
      end
    end

    ∵ curl http://localhost:3000/test
    <a href="/test"><img alt="Foo" src="/images/foo" /></a>

Why is your application escaping the image tag?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to