Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Wrapper around Rails' compute_public_path for generating fully-qualified URLs to assets
def compute_public_url( filename, dir, ext = filename.split('.').last )
path = compute_public_path(filename, dir, ext)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.