मैं date.to_s(:db) से परेशान नहीं हूं रूपांतरण। शुद्ध Date के साथ कार्य करना और Datetime मेरे लिए ठीक काम करता है।
Game.first(:conditions => ["starts_at <= ?", 3.days.from_now.to_date])
मैं date.to_s(:db) से परेशान नहीं हूं रूपांतरण। शुद्ध Date के साथ कार्य करना और Datetime मेरे लिए ठीक काम करता है।
Game.first(:conditions => ["starts_at <= ?", 3.days.from_now.to_date])