内联Javascript无法在Rails 3.1上重新呈现部分ruby [英]Inline Javascript not working properly on rerendering a partial in ruby on rails 3.1