method
compute_public_path
v2.0.1 -
Show latest stable
-
0 notes -
Class: ActionView::Helpers::AssetTagHelper
- 1.0.0 (0)
- 1.1.0 (0)
- 1.1.1 (0)
- 1.1.6 (0)
- 1.2.0 (0)
- 1.2.6 (0)
- 2.0.0 (38)
- 2.0.1 (0)
- 2.0.3 (-3)
- 2.1.0 (3)
- 2.2.1
- 2.3.2 (0)
- 2.3.8 (0)
- 3.0.0 (0)
- 3.0.5 (0)
- 3.0.7 (0)
- 3.0.9 (-1)
- 3.1.0
- 3.2.1
- 3.2.3
- 3.2.8
- 3.2.13
- What's this?
compute_public_path(source, dir, ext = nil, include_host = true)
private
Add the .ext if not present. Return full URLs otherwise untouched. Prefix with /dir/ if lacking a leading /. Account for relative URL roots. Rewrite the asset path for cache-busting asset ids. Include a single or wildcarded asset host, if configured, with the correct request protocol.


