开发者

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

开发者 https://www.devze.com 2022-12-11 19:59 出处:网络
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 functio

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

精彩评论

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