开发者

rake throws an error: undefined method `reserved=' for #<FriendlyId

开发者 https://www.devze.com 2023-01-01 12:18 出处:网络
I run rake and I get this error. What\'s that supposed to mean? Sorry I\'m newbie to RoR sb please help. Thanks a lot.

I run rake and I get this error. What's that supposed to mean? Sorry I'm newbie to RoR sb please help. Thanks a lot.

undefined method `reserved=' for #<FriendlyId::Act开发者_JAVA百科iveRecordAdapter::Configuration:0x2b1ae5c2ec70>


You have to use reserved_words instead of reserved.

There was a code change in recent versions of friendly_id.

http://norman.github.com/friendly_id/FriendlyId/Configuration.html#reserved_words-instance_method


may be you are using reserved= instead of reserved on your FriendlyId object.

0

精彩评论

暂无评论...
验证码 换一张
取 消