dimanche 22 mars 2015

How can I validate a Date-Time field in rails_admin

I had two fields available_to and available_from in a model called Hotel. And when creating a new hotel, we got to specify the date and time! and I want to validate these two fields, in such a way that, if one selects available_to as 23/2/2015 , the available_from should not be 23/2/2014.


Aucun commentaire:

Enregistrer un commentaire