![](/img/trans.png)
[英]Error CORS when i want redirecting localhost:4000 to localhost:3000
[英]Error when I try to open http://localhost:3000/pages/home
Pages#home中的ExecJS :: ProgramError
显示c:/Users/Administrator/desktop/pinteresting/app/views/layouts/application.html.erb,其中第6行出现:
TypeError:对象不支持此属性或方法(在c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js中。咖啡)
提取的源(第6行附近):
Pinteresting <%= stylesheet_link_tag'application',media:'all','data-turbolinks-track'=>正确%> <%= javascript_include_tag'application','data-turbolinks-track'=>正确%> <%= csrf_meta_tags%>
您的计算机上似乎未安装nodejs。 使用安装
sudo apt-get install nodejs
或在您的gemfile中添加execjs
gem。
至于从Ruby运行JavaScript代码,我们需要以上之一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.