Forum: Ruby on Rails javascript_include_tag question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ea44bd120ed7cf301d561bcc3e7a6c96?d=identicon&s=25 Alex (Guest)
on 2009-01-21 19: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
this:

              <%= 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.

Alex
Ea44bd120ed7cf301d561bcc3e7a6c96?d=identicon&s=25 $B9@fF(B (Guest)
on 2009-01-21 20: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
management.

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

     ENV['RAILS_ASSET_ID'] = ''

Alex
This topic is locked and can not be replied to.