Rails 发现一个很诡异的问题,用 update_attribute,变成 SQL 语句时,ID 变没了

lin_style · June 03, 2012 · Last by lin_style replied at June 03, 2012 · 2100 hits

Mysql2::Error: Unknown column 'users.' in 'where clause': UPDATE users SET lastlogin_time = '2012-06-03 01:39:27' WHERE users.`` = 11

之前都没这个问题

ruby 1.9.3p125 (2012-02-16) [i386-mingw32] Rails 3.2.2

找到什么问题了。。揭帖。

You need to Sign in before reply, if you don't have an account, please Sign up first.