Forum: Ruby on Rails javascript_include_tag question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alex (Guest)
on 2009-01-21 20:13
(Received via mailing list)
Hi  all,

      I'm use google gears, i need to store my javascript files by
manifest list.

      In my rails app,

       i used the helper method named  javascript_include_tag   like

              <%= javascript_include_tag  " jquery " %>

      i got ,  "  /javascripts/jquery.js?1232094786 "

      so ,    I cant store jquery.js to   LocalServer,  beacuse of
program cant find the file named "jquery.js?1232094786" .

     I need to delete the random number behind question marker.

     so, how to delete the random number(1232094786)if you use
javascript_include_tag and image_tag helper method   ?

     Thank you !
     sorry for my poor english.

$B9@fF(B (Guest)
on 2009-01-21 21:42
(Received via mailing list)
Hi all,

I know how to disable it .
it's not a random number ,it's a to asset timestamps to  aid in cache

simply add the following line to your config/environment.rb:

     ENV['RAILS_ASSET_ID'] = ''

This topic is locked and can not be replied to.