(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
精彩评论