Rails acts_as_state_machine 问题

发布于 2024-07-29 19:20:14 字数 179 浏览 1 评论 0原文

我已经安装了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淑女气质 2024-08-05 19:20:15

如果您在运行生成器时使用 --stateful--aasm ,它将启用 acts_as_state_machine 支持。 如果这是您想要的行为,请尝试从上面的 github 链接安装 aasm 并查看是否可以解决您的问题。

If you use --stateful or --aasm when you run the generator, it enables acts_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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文