master
$("#commentable_id").val('<%= @commentable_id %>'); $("#commentable_type").val('<%= @commentable_type %>'); $("#new_comment textarea").val(''); $("#new_comment textarea").focus();