如何能产生与javascript文档链接的absolute。
我假定,应该像以下一点(不幸看来没有):
javascript_url main # -> http://localhost:3000/javascripts/main.js
而不是:
javascript_path main # -> /javascripts/main.js
I need the absolute URL because that javascript file will be used in a bookmarklet.
Additionally I need the same for css file.
Thanks,
Dmitriy.