开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜