This project is archived and is in readonly mode.
Asset Timestamping w/ relative_url_root
Reported by Joe Goldwasser | October 24th, 2008 @ 05:04 PM | in 2.x
When I installed the v2.2.0 gems I no longer see asset timestamps on my javascripts or stylesheets.
I have the following line in my environment.rb file: config.action_controller.relative_url_root= '/qs'
I've attached a screenshot of the source generated for the page assets.
If I deploy to the root without a relative_url_root, the timestamps work as expected.
Comments and changes to this ticket
-
Joe Goldwasser October 25th, 2008 @ 05:46 AM
- Tag changed from 2.2, actionpack to 2.2, actionpack, patch
The problem appeared to be caused because the method prepend_relative_url_root was being called before rewrite_asset_path which failed because the rewrite_asset_path was then looking for a file that did not exist.
Adding patch with fix and test.
-
Joe Goldwasser October 25th, 2008 @ 06:52 PM
- Tag changed from 2.2, actionpack, patch to 2.2, actionpack, assets, patch, timestamp
- Assigned user set to josh
-
Repository October 26th, 2008 @ 03:50 PM
(from [2c7abe1b5682d287b19dde5900087908c976109c]) Fixed bug with asset timestamping when using relative_url_root (Joe Goldwasser) [#1265 status:committed] http://github.com/rails/rails/co...
-
DHH October 27th, 2008 @ 04:25 PM
- State changed from new to committed
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 1265 Asset Timestamping w/ relative_url_root (from [2c7abe1b5682d287b19dde5900087908c976109c]) Fixed b...