gehuangyi20 / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

ruby on rails image_tag (RAILS_ASSET_ID) #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an image tag with ruby on rails
2. the result will be -
<img src="/images/icons/cross-trans.png?1208645182" alt="Cross-trans"/>
3. notice that rails automatically adds a timestamp to the end of the image url

Rails output is fine but the js doesn't work on this url...
I guess it's a really small change, just make the script parse the image
url in a better way

I am using IE8.js, Tested on Mac and Windows

It is possible to change rails image_tag behavior by adding 
ENV['RAILS_ASSET_ID'] = '' to enviorment.rb
this will prevent rails from adding the timestamp and the output will be -
<img src="/images/icons/cross-trans.png" alt="Cross-trans"/>
which works perfectly find, But this is kind of a nasty hack...

Original issue reported on code.google.com by g.shmu...@gmail.com on 6 Nov 2008 at 12:13

GoogleCodeExporter commented 9 years ago
This is a duplicate of Issue #214.

It is fixed in the next release (2.1).

Original comment by dean.edw...@gmail.com on 10 Feb 2010 at 9:57