lundi 25 juin 2018

RoR and Filemaker Where condition

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