before add datetimepicker for rails