On 1/4/06, Ara.T.Howard <[EMAIL PROTECTED]> wrote: > it strikes me as odd that 'compute_public_path' would add the > 'relative_url_root' to a path which has already had it added, but looking > at > > file: actionpack-1.11.2/lib/action_view/helpers/asset_tag_helper.rb > > 148 def compute_public_path(source, dir, ext) > 149 source = "/#{dir}/#{source}" unless source.first == "/" || > source.include?(":") > 150 source = "#{source}.#{ext}" unless source.include?(".") > 151 source = "[EMAIL PROTECTED]" unless %r{^[-a-z]+://} =~ > source > 152 source = ActionController::Base.asset_host + source unless > source.include?(":") > 153 source > 154 end > > > we can see on line 151 that it certainly is __always__ added unless the url > has a protocol attached (which seems an odd test doesn't it?).
I ran into something similar in EdgeRails a few months ago, and my analysis led me to the method you've pointed out. From what I remember, isn't @controller.request.relative_url_root only populated under Apache, and not under WEBrick or Lighty? Assuming that's still true, that's something to take into consideration. _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core