working through 15.13
This commit is contained in:
6
cookbook/015/hodgepodge/app/views/list/index.html.erb
Normal file
6
cookbook/015/hodgepodge/app/views/list/index.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<ul style="font-family:monospace;">
|
||||
<% @list.each_with_index do |item, i| %>
|
||||
<li class="<%= i % 2 == 0 ? 'even' : 'odd' %>"><%= i %>:
|
||||
<%= SHA1.new(item.id.to_s) %></li>
|
||||
<% end %>
|
||||
</ul>
|
Reference in New Issue
Block a user