Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created September 3, 2008 04:45
Show Gist options
  • Save erichocean/8541 to your computer and use it in GitHub Desktop.
Save erichocean/8541 to your computer and use it in GitHub Desktop.
# Returns the URL for the named resource
def static_url(resource_name, opts = {})
opts[:language] ||= language
entry = bundle.find_resource_entry(resource_name, opts)
entry.nil? ? '' : entry.cacheable_url
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment