我在 rails 3.1.13 下工作,如果我在布局文件中添加 <%= javascript_include_tag :application %> ,我的网站将无法运行,并抛出如下异常:
JSON::ParserError in Auto_test_sets#index
Showing E:/site/bqsysinfo/app/views/layouts/application.html.erb where line #6 raised:
*757: unexpected token at 'The node identifier for myserver is qe7sajt2h.
'
(in E:/site/bqsysinfo/app/assets/javascripts/auto_test_sets.js.coffee)
Extracted source (around line #6):
3: <head>
4: <title>my site</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag :application %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body style="background-color: #EEEEEE;">*
如果我把这个 <%= javascript_include_tag :application %> 弄出来,它可以工作,但不能提交销毁请求。任何人都可以帮忙吗?