First providing an id for the check box
<label class="checkbox" id="chkid">Override import conflicts?</label>
<%= check_box_tag "override", "true", false, class: "checkbox" %>
and by using JS prototype like
function confirm()
{
if ($F('chkid').checked == false)
{
"Please Select Check box\n";
}
}