烟也致瘾
@user.posts.where('status = ?', :unfinished).all returns []
By @user.posts, I can see there is a post with :unfinished status. But @user.posts.where(\'status = ?\', :unfinished).all returns an empty array.[详细]
2022-12-25 06:47 分类:问答
By @user.posts, I can see there is a post with :unfinished status. But @user.posts.where(\'status = ?\', :unfinished).all returns an empty array.[详细]