开发者

Rails 3.1 javascript_include_tag

<%= 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜