Ruby on Rails 插件:acts_as_taggable_on_steroids。不断收到“method_missing”未定义的局部变量或方法“acts_as_taggble_on”
我正在尝试为我的 Rails 应用程序实现一个标记系统。我使用了流行的插件acts_as_taggable_on_steroids,并按照如何安装它的说明进行操作。然后,我将acts_as_taggable包含在我想要添加标签的模型中,但是当我尝试启动服务器时,我不断收到错误method_missing':未定义的局部变量或方法
acts_as_taggable' for # ( NameError)
我在谷歌上查看,作者建议尝试acts_as_taggable_on,但这仍然没有解决问题。我已经在这个问题上苦苦挣扎了几个小时,但仍然不知道问题出在哪里。有人可以解释一下吗?
非常感谢大家的帮助!!
I am trying to implement a tagging system for my rails app. I employed the popular plugin acts_as_taggable_on_steroids, and followed the instruction on how to install it. I then included acts_as_taggable in the model that I would like to have tags on, but then when I try to start the server I keep getting the error method_missing': undefined local variable or method
acts_as_taggable' for # (NameError)
I look on google and the author suggested to try acts_as_taggable_on, but still this did not fix the problem. I am struggling on this problem for hours already, but still don't know where is the problem. Could anyone please shed some light?
Thank you very much for all the help!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试在文件开头要求 lib ruby 充当可标记的类固醇?
比如:
也许?
Did you try to require the lib ruby of act as taggable on steroids at the beginning of your file?
Something like:
maybe?