fix RJS error in on_update.js.erb, use to_param