Hi, To disable asset_id completely, simply set the environment variable (for instance in environment.rb):
ENV['RAILS_ASSET_ID'] = "" cheers Philip Hallstrom wrote: >> .swf file in public/images/flash >> fine. >> >> In production, the app will be deployed in a subdirectory, so the path >> will be different. >> >> Is there a different asset tag helper or approach I should be using? > > You could roll your own, or look at aliasing rewrite_asset_path to not > append the timestamp if the source matches ".swf". Or modify > rails_asset_id(). I think you can also disable it completely, but I > forgot how at the moment. > > In vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb > > # Break out the asset path rewrite in case plugins wish to > put the asset id > # someplace other than the query string. > def rewrite_asset_path(source) > asset_id = rails_asset_id(source) > if asset_id.blank? > source > else > source + "?#{asset_id}" > end > end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---