method

javascript_url

javascript_url(source, options = {})
public

Computes the full URL to a JavaScript asset in the public javascripts directory. This will use javascript_path internally, so most of their behaviors will be the same.