<% @list.each_with_index do |item, i| %> <%= create_li(item, i).html_safe %> <% end %>