Views: cycle is not even odd

There have been times I needed to assign a special CSS class to an HTML table's rows based on their index. To accomplish that, I used the each_with_index method on the Array resulting to something like this:

Well, say hello to Rails' cycle view helper method. Use this method in an iteration block passing your miscellaneous values (not limited to only two) and let Rails use each of them repeatedly to each iteration. Here's the above piece of code altered to use the cycle method: