Parameters

Parameter Description
ic-request This will always be true for intercooler requests.
_method Because not all browsers support PUT and DELETE requests in AJAX, intercooler uses the Rails convention and adds a _method parameter to the request whose value will be the HTTP Method type (e.g. DELETE).
ic-element-id The HTML id of the element that caused the request, that is the element that has the ic-post-to or similar attribute on it.
ic-element-name The HTML name of the element that caused the request, that is the element that has the ic-post-to or similar attribute on it.
ic-target-id The ID of the target element of the request. This can be used to figure out which bit of partial HTML to render, if a given URL is used to target different areas depending on the context.
ic-trigger-id The ID of the target that initially triggered the request. This can be different than the element that caused the request: it could be a child element.
ic-trigger-name The HTML name of the target that initially triggered the request. This can be different than the element that caused the request: it could be a child element.
ic-current-url The current URL of the page.
ic-prompt-value The user input from the javascript prompt if the ic-prompt attribute is used

Headers

Header Description
X-IC-Request Set to true
X-HTTP-Method-Override Set to the HTTP Method type (e.g. DELETE) for the request, to communicate the actual request type to the server if it cannot be directly supported by the client.