Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Methods rake抛出一个错误:未定义的方法`reserved=';对于#<;友好的_Methods_Rake_Undefined - Fatal编程技术网

Methods rake抛出一个错误:未定义的方法`reserved=';对于#<;友好的

Methods rake抛出一个错误:未定义的方法`reserved=';对于#<;友好的,methods,rake,undefined,Methods,Rake,Undefined,我运行rake得到这个错误。那是什么意思?对不起,我是新手,请帮忙。非常感谢 undefined method `reserved=' for #<FriendlyId::ActiveRecordAdapter::Configuration:0x2b1ae5c2ec70> 未定义的方法'reserved='# 可能是您在FriendlyId对象上使用的是保留的=而不是保留的。您必须使用保留的单词而不是保留的 最近版本的friendly_id中有代码更改 事实上,我尝试部署Event

我运行rake得到这个错误。那是什么意思?对不起,我是新手,请帮忙。非常感谢

undefined method `reserved=' for #<FriendlyId::ActiveRecordAdapter::Configuration:0x2b1ae5c2ec70>
未定义的方法'reserved='#

可能是您在FriendlyId对象上使用的是保留的=而不是保留的

您必须使用保留的单词而不是保留的

最近版本的friendly_id中有代码更改


事实上,我尝试部署Eventicus,作者成功地部署了它。github.com/webmatze/eventicus.de问题源于友好的gem:代码在版本2.2.7中运行正常,在版本3.0.4中失败;不知道为什么它失败了,而它不应该失败。不管怎样,我现在使用的是friendly_id 2.2.7,它可以正常工作。