Rails acts_as_state_machine 问题
我已经安装了restful_authentication插件。 我正在使用 Rails 2.2.2。 但是,我似乎无法克服某个错误:
“未定义的方法acts_as_state_machine”
无论我调用db:migrate还是脚本/服务器,一切都会导致同样的错误。
有任何想法吗?
I've installed the restful_authentication plugin. I'm Using rails 2.2.2. However, I can't seem to get past a certain error:
"undefined method acts_as_state_machine"
It doesn't matter if I call db:migrate or script/server, everything results in this same error.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在运行生成器时使用
--stateful
或--aasm
,它将启用acts_as_state_machine
支持。 如果这是您想要的行为,请尝试从上面的 github 链接安装 aasm 并查看是否可以解决您的问题。If you use
--stateful
or--aasm
when you run the generator, it enablesacts_as_state_machine
support. If that is behavior you want, try installing aasm from the above github link and see if that resolves your issue.