This project is archived and is in readonly mode.

#353 ✓invalid
suckerpunch

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

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>

People watching this ticket

Attachments

Pages