# File lib/action_view/helpers/prototype_helper.rb, line 742 def insert_html(position, id, *options_for_render) content = javascript_object_for(render(*options_for_render)) record "Element.insert(\"#{id}\", { #{position.to_s.downcase}: #{content} });" end