标签: ruby-on-rails ruby ruby-on-rails-4
ruby mine为这行代码弹出错误:
scope :to_activate, -> {where("start_date < ? AND active = 0", DateTime.now)}
错误出在 - &gt;
消息是:
Exception: expression
这条线路有什么不对?