You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: legacy-prototype_legacy_helper.rb
    path of file: ./repos/moebooru/config/core_ext
    
    the code of the file until where you have to start completion: module PrototypeHelper
  # Creates a button with an onclick event which calls a remote action
  # via XMLHttpRequest
  # The options for specifying t
    
  def submit_to_remote(name, value, options = {})
    options[:with] ||= "Form.serialize(this.form)"

    html_options = options.delete(:html) || {}
    html_options[:name] = name

    button_to_remote(value, options, html_options)
  end