Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created November 27, 2008 23:55
Show Gist options
  • Select an option

  • Save lukesutton/29868 to your computer and use it in GitHub Desktop.

Select an option

Save lukesutton/29868 to your computer and use it in GitHub Desktop.
# Ajax request
@response = request(url(:help), "HTTP_X_REQUESTED_WITH" => "XMLHttpRequest")
# HTTP Method — "POST", "GET", "DELETE", "PUT"
@response = request(url(:help), :method => "POST")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment