Rails Rails4-Turbolinks bug?

michael_roshen · November 18, 2014 · Last by michael_roshen replied at November 18, 2014 · 1406 hits
rails new test_rails4_turbolinks
cd test_rails4_turbolinks
rails g scaffold User name:string age:integer
rake db:migrate

访问 http://localhost:3000/users, 点击 New user, 查看浏览器控制器

createDocument = function(html) {
var doc;
------>doc = document.documentElement.cloneNode();
doc.innerHTML = html;
doc.head = doc.querySelector('head');
doc.body = doc.querySelector('body');
return doc;
}; 

有人遇到过嘛?好像少了个参数

@huacnlee 求助,rubyChina 怎么没有错误?

#1 楼 @michael_roshen 可能版本比较新或比较旧。

#2 楼 @Rei 👌,默认使用 2.5.2,换成 2.3.0 就好了,新版的 bug 吧,谢了

You need to Sign in before reply, if you don't have an account, please Sign up first.