开发者

rails 3.1 windows new project js issue

开发者 https://www.devze.com 2023-04-02 17:34 出处:网络
I\'ve just installed rails 3.1 and generated a test application to take the changes for a spin. But after updating creating the pages controller and updating the routes to point ot paged#index I get t

I've just installed rails 3.1 and generated a test application to take the changes for a spin. But after updating creating the pages controller and updating the routes to point ot paged#index I get this:

Showing D:/Proje开发者_JAVA百科cts/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>

Any idea ?

Thanks,


Ok,

So I managed to figured it out, looked like I had to install execjs gem, a simple:

gem install execjs

Did the trick !

0

精彩评论

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