Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created December 19, 2012 00:25
Show Gist options
  • Save leemcalilly/4333366 to your computer and use it in GitHub Desktop.
Save leemcalilly/4333366 to your computer and use it in GitHub Desktop.
<section id="carousel">
<div id="myCarousel" class="carousel slide">
<ul class="carousel-inner">
<% @slides.each_with_index do |slide, i| %>
<% if i==0 %>
<li class="item active">
<% else %>
<li class="item">
<% end %>
<%= link_to image_fu(slide.image, '1200x490!'), refinery.slides_slide_path(slide) %>
</li>
<% end %>
</ul>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div><!-- /myCarousel -->
</section><!-- carousel -->
<%= render '/refinery/content_page' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment