解决Rails ExecJS::ProgramError的方案 Ruby on Rails

来源:互联网 发布:诸暨市淘宝司法拍卖 编辑:程序博客网 时间:2024/05/17 02:26

运行第一个Rails程序时,报出如下错误:

Showing c:/Users/Doesha/desktop/pinplug/app/views/layouts/application.html.erb where line #6 raised:TypeError: Object doesn't support this property or method  (in c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee)

解决方案:
在 /app/views/layouts/application.html.erb文件的第5行或第6行将application修改成default.不过只适用于Windows系统(果然到处是坑啊)

1 0