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
Any one help
rubyonrails-talk
2
111
January 29, 2009
scanning for links
rubyonrails-talk
0
87
January 21, 2007
How do You Transform User-inputted URLs into Links?
rubyonrails-talk
0
118
November 1, 2007
cycle() not cycling in a partial
rubyonrails-talk
2
173
January 26, 2009
HOW TO: Easily output alternating item styles via metaprogramming
rubyonrails-talk
3
137
July 3, 2007