ajax rating for rails3