Railsdate大于给定的date查询

试图search出现在电影中的发行date大于今天的date

Movie.where('release > ?', Date.today) ActiveRecord::StatementInvalid: Mysql::ParseError: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'release > '2011-09-25')' at line 1: SELECT `movies`.* FROM `movies` WHERE (release > '2011-09-25') 

尝试Movie.where(['release > ?', DateTime.now])


或者在Rails 3+: Movie.where('release > ?', DateTime.now)