javascript_include_tag question

4 views
Skip to first unread message

Alex

unread,
Jan 21, 2009, 1:12:03 PM1/21/09
to rubyonrails-talk abridged email subscribers
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

浩翔

unread,
Jan 21, 2009, 2:41:28 PM1/21/09
to Ruby on Rails: Talk
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
Reply all
Reply to author
Forward
0 new messages