How To Proxy Pages Through Rails
Join the DZone community and get the full member experience.Join For Free
class DefaultController < ApplicationController def default result = Net::HTTP.get_response( "realserver.internal.net", @request.env["REQUEST_URI"] ) #render error if result. ... render_text result.body end end
Opinions expressed by DZone contributors are their own.