如何在heroku 上使用带有声明性授权的rails 2.3.8?
帮助 Rails 3 昨天发布了, 我们有一个功能齐全的rails 2.3.8应用程序,但是我们在heroku上的部署不起作用,因为declarative_authorization需要rails 2.1或更高
这是一个非常大的问题,我该如何解决它,任何快速破解,解决方法?
help rails 3 came out yesterday,
we have a fully functional rails 2.3.8 app, but our deployment on heroku doesn't work because declarative_authorization demands rails 2.1 or higher
That is a very big problem, how can I solve it, any quick hacks, workarounds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您的
.gems
文件开头为:但正如您所说, declarative_authorization 将在您的 Rails 安装之上安装 Rails 3.0.0 gems,从而破坏了很多。您可以在 gems 清单中使用以下方法来解决这个问题:
当然,您还需要在 gems 清单中单独包含 declarative_authorization 的每个依赖项。
Make sure your
.gems
file starts with:But as you've stated, declarative_authorization will then go an install the Rails 3.0.0 gems over the top of your rails install, breaking the lot. You can get around this in your gems manifest, by using:
Of course, you'll also need to separately include each dependency for declarative_authorization in your gems manifest.