奇怪的 SearchLogic 错误(Rails)

发布于 2024-09-19 11:33:21 字数 199 浏览 0 评论 0原文

我的搜索表单正在触发此操作。

undefined method `id_like_before_type_cast' for #<Class:0xb5ffff68>

这是表格中的行:

<%= f.text_field :id_like %>

My search form is triggering this.

undefined method `id_like_before_type_cast' for #<Class:0xb5ffff68>

Here's the line from the form:

<%= f.text_field :id_like %>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

随梦而飞# 2024-09-26 11:33:22

我已经在我的机器上解决了这个问题。我认为该问题是由于尝试从 Rails 2.3.9 升级到 Rails 2.3.12,然后又退回到 2.3.9 造成的。我这样做时没有删除我的供应商/rails 目录,看起来 2.3.12 中的一些文件被遗留下来了。

解决方案是删除vendor/rails目录,然后重新安装(并冻结)Rails 2.3.9。

I have fixed this problem on my machine. I believe the problem resulted from attempting to upgrade from Rails 2.3.9 to Rails 2.3.12, then backing back down to 2.3.9. I did this without deleting my vendor/rails directory and it looks like some files from 2.3.12 got left behind.

The solution was to delete the vendor/rails directory, then reinstall (and freeze) Rails 2.3.9.

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