Say#hello Ruby on Rails中的ExecJS :: RuntimeError

时间:2014-04-12 14:28:23

标签: ruby-on-rails ruby execjs

创建了一个控制器

rails generate controller Say hello

我导航到localhost它返回execjs错误

ExecJS::RuntimeError in Say#hello
Showing C:/Users/Roman/Documents/Aptana Studio 3 Workspace/my_app/app/views/layouts/application.html.erb where line #6 raised:


  (in c:/Ruby193/lib/ruby/gems/1.9.1/gems/turbolinks-2.2.2/lib/assets/javascripts/turbolinks.js.coffee)
Extracted source (around line #6):       
  < <head>
<title>MyApp</title>
<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
selected red this line:
     <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>

  

怎么办?

1 个答案:

答案 0 :(得分:1)

尝试

%= stylesheet_link_tag    'applications', media: 'all', 'data-turbolinks-track' => true %>
    selected red this line:
     <%= javascript_include_tag 'applications', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>`