2011-08-11 02:32:18 +00:00
|
|
|
require 'sha1'
|
|
|
|
|
|
|
|
|
2011-08-11 02:06:36 +00:00
|
|
|
module ListHelper
|
2011-08-11 02:32:18 +00:00
|
|
|
def create_li(item, i)
|
|
|
|
%{<li class="#{ i % 2 == 0 ? 'even' : 'odd' }">#{i}:
|
|
|
|
#{SHA1.new(item.object_id.to_s)}</li>}
|
|
|
|
end
|
2011-08-11 02:06:36 +00:00
|
|
|
end
|