Skip to content

Instantly share code, notes, and snippets.

@nolman
Created March 19, 2011 00:55
Show Gist options
  • Save nolman/877100 to your computer and use it in GitHub Desktop.
Save nolman/877100 to your computer and use it in GitHub Desktop.
class FoosController < ApplicationController
def http
http = EM::HttpRequest.new(params[:url]).get
http.callback {
render :text => http.response
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment