title: How do i add a Bootstrap carousel to Ruby on rails app?
body: <p>I am new developer and trying to add a Bootstrap carousel to my rails app.</p>
  
  <p>This is the carousel that I am trying to add in particular:
  <a href="http://arturssmirnovs.com/blog/bootstrap-carousel-100-height-and-width/" rel="nofollow">http://arturssmirnovs.com/blog/bootstrap-carousel-100-height-and-width/</a></p>
  
  <p>So far i've only gotten the white left and right pointers to show up from the carousel (Ex: the navigation pointers that look like this &lt; >)</p>
  
  <p>Here's my html code, that i snabbed from the link above, I inserted this portion in the about.html.erb page, which is the static page that I want the carousel to appear in like this </p>
  
  <p>views/layouts/staticpages/about.html.erb:</p>
  
  <pre><code>&lt;div class="aboutslide"&gt;
  
  &lt;div id="myCarousel" class="carousel slide" data-ride="carousel"&gt;
  &lt;ol class="carousel-indicators"&gt;
  &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
  &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;/li&gt;
  &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;/li&gt;
  &lt;/ol&gt;
  &lt;div class="carousel-inner"&gt;
  &lt;div class="item bg bg1 active"&gt;
  &lt;div class="container"&gt;
  &lt;div class="carousel-caption"&gt;
  &lt;h1&gt;Example headline.&lt;/h1&gt;
  &lt;p&gt;Note: If you're viewing this page via a &lt;code&gt;file://&lt;/code&gt; URL, the "next" and "previous" Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.&lt;/p&gt;
  &lt;p&gt;&lt;a class="btn btn-lg btn-primary" href="#" role="button"&gt;Sign up today&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="item bg bg2"&gt;
  &lt;div class="container"&gt;
  &lt;div class="carousel-caption"&gt;
  &lt;h1&gt;Another example headline.&lt;/h1&gt;
  &lt;p&gt;Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.&lt;/p&gt;
  &lt;p&gt;&lt;a class="btn btn-lg btn-primary" href="#" role="button"&gt;Learn more&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="item bg bg1"&gt;
  &lt;div class="container"&gt;
  &lt;div class="carousel-caption"&gt;
  &lt;h1&gt;One more for good measure.&lt;/h1&gt;
  &lt;p&gt;Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.&lt;/p&gt;
  &lt;p&gt;&lt;a class="btn btn-lg btn-primary" href="#" role="button"&gt;Browse gallery&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;a class="left carousel-control" href="#myCarousel" data-slide="prev"&gt;&lt;span class="glyphicon glyphicon-chevron-left"&gt;&lt;/span&gt;&lt;/a&gt;
  &lt;a class="right carousel-control" href="#myCarousel" data-slide="next"&gt;&lt;span class="glyphicon glyphicon-chevron-right"&gt;&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is my <code>app/assets/stylesheets/carousel.css</code> file:</p>
  
  <pre><code>html, body {
      height:100%;
      margin:0;
      padding:0;
  }
      .carousel, .item, .active {
      height:100%;
  }
  .carousel-inner {
      height:100%;
  }
  .carousel {
      margin-bottom: 60px;
  }
  .carousel-caption {
      z-index: 10;
  }
  .carousel .item {
      background-color: #777;
  }
  .carousel .carousel-inner .bg {
      background-repeat:no-repeat;
      background-size:cover;
  }
  .carousel .carousel-inner .bg1 {
      background-image:url(bg1.jpg);
      background-position: center top;
  }
  .carousel .carousel-inner .bg2 {
      background-image:url(bg2.jpg);
      background-position: center center;
  }
  .carousel .carousel-inner .bg3 {
      background-image:url(bg3.jpg);
      background-position: center bottom;
  }
  
  @media (min-width: 768px) {
  
  
    /* Bump up size of carousel content */
    .carousel-caption p {
      margin-bottom: 20px;
      font-size: 21px;
      line-height: 1.4;
    }
  }
  </code></pre>
  
  <p>and there is the docs.js file that i have inserted in <code>apps/assets/javascripts/docs.js</code>. I can't post it because the file is too big.</p>