Đang cố gắng để tìm kiếm nơi phim sắp ra có một lớn hơn ngày phát hành hơn ngày hôm nayRails nơi ngày lớn hơn cho ngày truy vấn
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')
Bản sao có thể có của [Bạn có thể làm lớn hơn so sánh trong một ngày trong tìm kiếm Rails 3 không?] (Https://stackoverflow.com/questions/4224600/can-you-do-greater-than-comparison-on- a-date-in-a-rail s-3-search) –