10 lines
174 B
Ruby
10 lines
174 B
Ruby
require 'sha1'
|
|
|
|
|
|
module ListHelper
|
|
def create_li(item, i)
|
|
%{<li class="#{ i % 2 == 0 ? 'even' : 'odd' }">#{i}:
|
|
#{SHA1.new(item.object_id.to_s)}</li>}
|
|
end
|
|
end
|