开发者

(rails) how does one correctly link to a javascript file in a rails view?

Is there a helper of some so开发者_开发百科rt? I want to make a javascript file, put it in the rails directories somewhere, and have the file be included in a view so I can use the methods and functions I declare in the file.


<%= javascript_include_tag "jquery" %>

With jquery.js in public/javascripts

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜