<%= javascript_include_tag 'javascripts/admin/manage_customer.js' %>
=> <script src="/assets/javascripts/admin/manage_customer.js" type="text/javascript"></script开发者_StackOverflow>
How to generate simple JS link to /javascripts/admin/manage_customer.js
in Rails 3.1?
Just put a slash before that.
<%= javascript_include_tag '/javascripts/admin/manage_customer.js' %>
精彩评论