Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我已经构建了以下查询:
patron.where.first(:Queued => 1)
这将返回整个记录,我只需要一个名为time. 就像是:
time
patron.where.first(:Queued => 1).get(:time)
对此有什么想法吗?
patron.where(:Queued => 1).select(:time).first