$(function() {
$('.datepicker').datepicker({
dateFormat: 'yy-mm-dd',
showOn: "button",
buttonImage: 'app/assets/images/calendar.png',
buttonImageOnly: true,
buttonText: "Select date"
});
});
buttonImage: "<%= asset_path('calendar.png') %>"