1

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>
Beaut
  • 114
  • 2
  • 10
  • It turns out it was a problem with the Turbolinks gem. See [Rails, javascript not loading after clicking through link_to helper](http://stackoverflow.com/questions/17600093/rails-javascript-not-loading-after-clicking-through-link-to-helper) – Beaut Nov 11 '16 at 23:13

0 Answers0