# render :partial

**URL:** <https://discuss.rubyonrails.org/t/render-partial/11203>\
**Category:** rubyonrails-talk\
**Created:** [April 3, 2007, 12:34pm UTC](https://discuss.rubyonrails.org/t/render-partial/11203 "2007-04-03T12:34:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Hall](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Chris\_Hall](https://discuss.rubyonrails.org/u/Chris_Hall)\
**Post date:** [April 3, 2007, 12:34pm UTC](https://discuss.rubyonrails.org/t/render-partial/11203/1 "2007-04-03T12:34:56Z")

</div>

just use the cycle() helper method

ex:

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

> **[ActionView::Helpers::TextHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000628)**
>
> The TextHelper module provides a set of methods for filtering, formatting and transforming strings, which can reduce the amount of inline Ruby code in your views.
