从 3.0.7 迁移到 Rails 3.1 - 错误:参数数量错误(3 为 2)
我正在尝试将应用程序移植到 Rails 3.1。
更新 Rails gem 后,我收到以下错误:
参数数量错误(3 for 2)
涉及的代码是:
User.find_by_email('email')
在应用程序控制器中。
有什么想法吗?这在 Rails 3.0.7 中运行良好,
谢谢!
I'm trying to port an app to rails 3.1.
After updating the rails gem, I'm getting the following error:
wrong number of arguments (3 for 2)
The code involved is:
User.find_by_email('email')
in Application Controller.
Any ideas? This was working fine in Rails 3.0.7
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新您的
newrelic
gem。如果这没有帮助,请尝试禁用它。请参阅 https:// support.newrelic.com/discussions/support/5844-newrelic_rpm-gem-inknown-with-not-yet-released-rails-31
Update your
newrelic
gem. If that won't help, try disabling it.See https://support.newrelic.com/discussions/support/5844-newrelic_rpm-gem-incompatible-with-not-yet-released-rails-31