Not sure if this is possible, but I am wondering if I can compare two fields in a .where. As I am trying to avoid if statements in this case.
For example: Article.where(clidlive: '*', "#{mod_date} > "#{releae_date})
mod_date is a date field in filemaker releae_date is a date field in filemaker.
I'd really appreciate if you could direct me to the right path, or even this is possible.
Thanks, Rob
Aucun commentaire:
Enregistrer un commentaire