rails 3.1 windows new project js issue

时间:2011-09-06 20:28:34

标签: ruby-on-rails

我刚刚安装了rails 3.1并生成了一个测试应用程序来进行旋转更改。但是在更新创建页面控制器并更新路由以指向分页#dedex后,我得到了这个:

Showing D:/Projects/randomTest/app/views/layouts/application.html.erb where line #6 raised:

["ok","(function() {\n\n}).call(this);\n"]

  (in D:/Projects/randomTest/app/assets/javascripts/pages.js.coffee)
Extracted source (around line #6):

3: <head>
4:   <title>RandomTest</title>
5:   <%= stylesheet_link_tag    "application" %>
6:   <%= javascript_include_tag "application" %>
7:   <%= csrf_meta_tags %>
8: </head>
9: <body>

有什么想法吗?

谢谢,

1 个答案:

答案 0 :(得分:2)

确定,

所以我设法弄清楚了,看起来我不得不安装execjs gem,简单:

gem install execjs

诀窍!