Ruby on rails 3 Rails中的引导转盘突然停止工作

Ruby on rails 3 Rails中的引导转盘突然停止工作,ruby-on-rails-3,twitter-bootstrap,Ruby On Rails 3,Twitter Bootstrap,我在rails应用程序中使用的旋转木马不久前还在工作,现在“下一个”和“上一个”按钮都不起作用。未对此视图或CSS中的旋转木马进行任何更改 这是我的密码: .carousel.slide#myCarousel .carousel-inner .active.item =image_tag("/assets/1.jpg") .carousel-caption %h4 Caption .item =image_tag("/assets/2.jpg")

我在rails应用程序中使用的旋转木马不久前还在工作,现在“下一个”和“上一个”按钮都不起作用。未对此视图或CSS中的旋转木马进行任何更改

这是我的密码:

.carousel.slide#myCarousel
 .carousel-inner
  .active.item
    =image_tag("/assets/1.jpg")
    .carousel-caption
      %h4 Caption
  .item
    =image_tag("/assets/2.jpg")
    .carousel-caption
      %h4 Caption
  .item
    =image_tag("/assets/3.jpg")
    .carousel-caption
      %h4 Caption

 %a.carousel-control.left{"data-slide" => "prev", :href => "#myCarousel"} ‹
 %a.carousel-control.right{"data-slide" => "next", :href => "#myCarousel"} ›

发现此解决方案对我有效:

在我的标题中使用此选项:

<script>
$(function(){
  $('#myCarousel').carousel();
});
</script>

发现此解决方案对我有效:

在我的标题中使用此选项:

<script>
$(function(){
  $('#myCarousel').carousel();
});
</script>