1
控制器代碼月份的情況如何不起作用:設置基於「created_at」字段
@mailings = Mailing.find(:all, :conditions => ["created_at.month = ?", m])
錯誤消息:
Mysql::Error: Unknown column 'created_at.month' in 'where clause': SELECT * FROM `mailings` WHERE (created_at.month = 10)
的感謝!