render :partial

just use the cycle() helper method

ex:

<li class="<%= cycle("even", "odd") -%>"> ... </li>

http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000628