开发者

Rails 3.1 javascript_include_tag

开发者 https://www.devze.com 2023-03-31 07:16 出处:网络
<%= javascript_include_tag \'javascripts/admin/manage_customer.js\' %> => <script src=\"/assets/javascripts/admin/manage_customer.js\" type=\"text/javascript\"></script开发者_StackOv
<%= 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.jsin Rails 3.1?


Just put a slash before that.

<%= javascript_include_tag '/javascripts/admin/manage_customer.js' %>
0

精彩评论

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