Advertisement
Guest User

Untitled

a guest
Mar 4th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.22 KB | None | 0 0
  1. <ol class="carousel-indicators">
  2.   <% @products.each_with_index do |product, index| %>
  3.     <li data-target="#carousel-example-generic" data-slide-to="<%= index %>" class="<%= "active" if index == 0 %>">
  4.   <% end %>
  5. </ol>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement