class ProxyController < ApplicationController

  # GET /proxy/:url
  def get_handle
    require 'open-uri'
    file = open(params[:url])
    contents = file.read
    render :text => contents
  end

end
    get "/proxy" => "proxy#get_handle"
```
$.get("/proxy?url=" + remote_url, function(data){
```