Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 9th, 2012  |  syntax: Rails  |  size: 0.65 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     <% @sub_categories.each do |sub_cat| %>
  2.       <div class="circle">
  3.         <header>
  4.           <h3 data-toggle="collapse" href="#<%= dom_id(sub_cat) %>-collapse"><%=sub_cat.name %></h3>
  5.           <ul id="<%= dom_id(sub_cat) %>-collapse" class="accordion-body collapse">
  6.             <li class="list-shadow"></li>
  7.          
  8.             <% @circles.each do |circle| %>
  9.               <% if circle.category_id == sub_cat.id %>
  10.                 <li><%= link_to circle.title, circle, :remote => true, :method => 'get' %></li>
  11.               <% end %>
  12.             <% end %>
  13.          
  14.           </ul>
  15.         </header>
  16.       </div><!--.circle-->
  17.     <% end %>
clone this paste RAW Paste Data