filling in the helper function bits + using "html_safe" method since I am on Rails 3
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<ul style="font-family:monospace;">
|
||||
<% @list.each_with_index do |item, i| %>
|
||||
<li class="<%= i % 2 == 0 ? 'even' : 'odd' %>"><%= i %>:
|
||||
<%= SHA1.new(item.object_id.to_s) %></li>
|
||||
<%= create_li(item, i).html_safe %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user