undefined method `each' "ERROR" when using AJAX

Sam Ginko wrote: CORRECTION ON THE RJS file
the content reads:

page.replace_html "rate_div", :partial => "rate", :object => @comments