內聯Javascript無法在Rails 3.1上重新呈現部分ruby [英]Inline Javascript not working properly on rerendering a partial in ruby on rails 3.1