RJS and changing an element's class

I have code in an rjs file similar to the following:

row = "row_575" page[row][:class] = "row-odd"

I'm trying to change the class of the row, but this doesn't appear to work. What am i missing?

page[row].add_class_name("foo")

-- Ezra Zygmuntowicz -- Rails Architect -- ez@engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)