@projects = @company.projects.where("active = ?",true).order("created_at ASC")
我收到错误:
`ActiveRecord::StatementInvalid: MysqL::ParseError: You have an error in your sql...`
错误指向=’1′.
我在我的查询中尝试过许多变体,但我无法弄清楚这个问题.我该如何解决?
@projects = @company.projects.where("active = 1").order("created_at ASC")