Flowdock
method

xml_http_request

Importance_1
v1.1.6 - Show latest stable - 0 notes - Class: ActionController::Integration::Session
xml_http_request(path, parameters=nil, headers=nil) public

Performs an XMLHttpRequest request with the given parameters, mimicing the request environment created by the Prototype library. The parameters may be nil, a Hash, or a string that is appropriately encoded (application/x-www-form-urlencoded or multipart/form-data). The headers should be a hash. The keys will automatically be upcased, with the prefix ‘HTTP_’ added if needed.

Show source
Register or log in to add new notes.