This method is deprecated or moved on the latest stable version.
The last existing version (v1.0.0) is shown here.
submit_to_remote(name, value, options = {})
public
Returns a button input tag that will submit form using XMLHttpRequest in
the background instead of regular reloading POST arrangement.
options argument is the same as in form_remote_tag
# File actionpack/lib/action_view/helpers/javascript_helper.rb, line 171
def submit_to_remote(name, value, options = {})
options[:with] ||= 'Form.serialize(this.form)'
options[:html] ||= {}
options[:html][:type] = 'button'
options[:html][:onclick] = "#{remote_function(options)}; return false;"
options[:html][:name] = name
options[:html][:value] = value
tag("input", options[:html], false)
end