I'm encountering a bug with Owl Carousel and Ruby on Rails. When visiting the site, the carousel works as intended. However after following a link then returning to home the carousel breaks. I can't figure it out. Link
Javascript:
$(document).ready(function(){
$(".carousel").owlCarousel();
});
Ruby link:
<%= link_to "Subnuba", root_path %>
Carousel:
<div class="carousel">
<div class='row'>
</div>
<div class='row'>
</div>
<div class='row'>
</div>
</div>