update rating.haml and gen rating.html