我正在使用与回形针的rails4。在我的一个表单中,我只想列出具有回形针附件的资源的记录。在回形针中是否有内置的支持?如何选择所有有附件的记录?
来源
2016-12-16 Antronin
尝试使用 YourModel.where.not(attachment_file_name: nil)
YourModel.where.not(attachment_file_name: nil)
2016-12-16 15:25:57 Mafi