app/views/shared/_form_html5_support.html.haml
:javascript
$(function(){
nicEditors.allTextAreas();
if (typeof document.createElement('canvas').getContext === "function") {
return;
} else {
$('input[type=time]').timepicker({
timeFormat: 'HH:mm',
interval: 15,
minTime: '00:00',
maxTime: '23:59',
startTime: '00:00',
dynamic: false,
dropdown: true,
scrollbar: true
}).attr('type','string');
$('input[type=date]').datepicker({
language: '#{I18n.locale}',
format: 'yyyy-mm-dd',
startDate: '1907-10-17',
endDate: '2100-12-31',
todayBtn: true
}).attr('type','string');
}
})