aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures/projects.yml
diff options
context:
space:
mode:
authorCraig R Webster <craig@barkingiguana.com>2010-03-21 19:35:38 +0000
committerwycats <wycats@gmail.com>2010-03-28 18:35:05 -0700
commit49bc6a249e2a200216f8a96c36093a2c7a471c9b (patch)
treeb699e8c5780a7ca92f11af16cc1945837302b6a3 /actionpack/test/fixtures/projects.yml
parentcf6734fdf9d72bfc7fe92e36bf603d67ad815e6b (diff)
downloadrails-49bc6a249e2a200216f8a96c36093a2c7a471c9b.tar.gz
rails-49bc6a249e2a200216f8a96c36093a2c7a471c9b.tar.bz2
rails-49bc6a249e2a200216f8a96c36093a2c7a471c9b.zip
Allow customisation of asset path generation using a proc.
Set config.action_controller.asset_path_template to a proc that takes one argument - the direct, unchanged asset path - and returns a path to that asset using the scheme that your assets require. This is useful if you have a setup which scales by introducing new application servers where the mtime of the asset files may not be the same as those of the asset files on your previous servers, but it does require your web servers to have knowledge of the asset template paths that you rewrite to so it's not suitable for out-of-the-box use. An example of configuring asset path generation and rewriting these paths using Apache is included in actionpack/lib/action_view/helpers/asset_tag_helper.rb. Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/fixtures/projects.yml')
0 files changed, 0 insertions, 0 deletions