On Mon, Feb 14, 2011 at 9:37 AM, Fernando Perez <[email protected]> wrote:

>> Why is your application escaping the image tag?
>
> Because I do something such as:
>
> <%= link_to "#{image_tag(cart.png)} Cart", cart_url %>
>
> So really the image_tag is inside a string, hence its sanitization.

I see.

I would write a helper link_to_cart whose implementation uses the raw
helper. That's the standard way to address this in Rails 3.

-- 
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