Utilizing the twitter bootstrap datetime-picker in conjunction with Ruby on Rails has been a seamless experience for me. However, I have encountered a small issue when displaying it within a modal at the bottom of the screen.
HTML
<div id="datetimePicker" class="input-append date">
<input data-format="dd/MM/yyyy hh:mm:ss" type="text" id="testdate"></input>
<span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span>
</div>
JS
<script>
$(document).ready(function(){
$('#datetimePicker').datetimepicker();
});
</script>
In addition, I had to apply some custom CSS to ensure proper display:
.bootstrap-datetimepicker-widget {
z-index:99999 !important;
}