This project is archived and is in readonly mode.
image_tag mouseout broken with Asset Server
Reported by suckerpunch | June 6th, 2008 @ 02:43 AM
Using an image tag such as:
<%= image_tag("nav-home.gif", :size => "100x30", :mouseover => "nav-home-over.gif") %>
when
config.action_controller.asset_host = "http://localhost/media"
is defined (for example), it breaks the onmousedown link.
In this instance, the rendered onmouseout looks like:
onmouseout="this.src='/images/http:%2F%2Flocalhost%2Fmedia%2Fimages%2Fnav-random.gif%3F1211937624'"
onmouseover="this.src='/images/nav-random-over.gif'"
You can see the onmouseout.
Comments and changes to this ticket
-
Tarmo Tänav August 23rd, 2008 @ 06:42 PM
- State changed from new to invalid
- Tag cleared.
I can't reproduce this on 2.1 or edge. I'm attaching a testcase which works for me, if possible please try to modify it to demonstrate the failure.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>