[OSM-dev] how to change the delimiter in rails asset urls?

Jon Burgess jburgess777 at googlemail.com
Wed Aug 6 00:17:31 BST 2008


On Tue, 2008-08-05 at 15:26 -0700, Mikel Maron wrote:
> Hi
> 
> Does anyone have an idea why the rails app appends "/" + timestamp, rather than "?" + timestamp, on asset urls?
> 
> <%= javascript_include_tag 'prototype' %>
> 
> results in 
> 
> <script src="/javascripts/prototype.js/1199623342" type="text/javascript"></script>
> 
> but I want it to be (as normally)
> 
> <script src="/javascripts/prototype.js?1199623342" type="text/javascript"></script>
> 
> Hints how I can change the delimiter?

Looks like using '/' over '?' this is specific to the OSM site using an
override for rewrite_asset_path in
http://trac.openstreetmap.org/browser/sites/rails_port/config/initializers/asset_tag_helper.rb

	Jon







More information about the dev mailing list