Flowdock
method

compute_public_path

Importance_1
v3.0.9 - Show latest stable - 0 notes - Class: ActionView::Helpers::AssetTagHelper
compute_public_path(source, dir, ext = nil, include_host = true) private

Add the the extension 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 asset host, if configured, with the correct request protocol.

Show source
Register or log in to add new notes.