【问题标题】:What is causing PGError: ERROR: there is no parameter $1 in my Rails app是什么导致 PGError: ERROR: there is no parameter $1 in my Rails app
【发布时间】:2011-08-19 14:44:53
【问题描述】:

我在编辑/显示 Rank 对象时开始收到此错误。我以前从未见过它,不知道如何解决它。有什么意见吗?

【问题讨论】:

  • 似乎这是有问题的行:has_scope :page, :default => 1. 不确定问题仍然存在,但删除该行会导致错误消失。
  • 是的,使用 has_scope gem。我还在为控制器使用 inherit_resources。

标签: sql ruby-on-rails ruby-on-rails-3 postgresql rails-postgresql


【解决方案1】:

看起来像 PostgreSQL 错误。检查您的应用程序正在生成的 SQL。

【讨论】:

    猜你喜欢
    • 2021-07-07
    • 2010-11-23
    • 2021-08-01
    • 2020-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多