Ruby on Rails Discussions
render :partial
rubyonrails-talk
Chris_Hall
(Chris Hall)
April 3, 2007, 12:34pm
1
just use the cycle() helper method
ex:
<li class="<%= cycle("even", "odd") -%>"> ... </li>
Related topics
Topic
Replies
Views
Activity
How do You Transform User-inputted URLs into Links?
rubyonrails-talk
0
106
November 1, 2007
Any one help
rubyonrails-talk
2
98
January 29, 2009
scanning for links
rubyonrails-talk
0
79
January 21, 2007
block of text method to make "..."
rubyonrails-talk
4
242
May 21, 2007
Textile - how to onl allow certain tags?
rubyonrails-talk
0
133
April 29, 2007