<% @items.each_with_index do |item, i| %>

<%= i+1 %> <%= "#{item.title}" %>

<% end %>
<%= javascript_include_tag "lib/jquery.masonry.min.js" %>