Zebra striping a table with a ruby helper
Mike GriffinI was trying to find a way to alternate the row colours in an HTML table for a Ruby application and stumbled across this DZone snippet.
The code in the snippet is:
This is used in a HAML view with the following code: