This seems to work in a Rails 3.2 app
# test_controller.rb
def pay
rack_response = Rack::Response.new(['Hello'], 200, {'Content-Type' => 'text/plain'})
self.response_body = rack_response.body
self.status = rack_response.status
self.response.headers = rack_response.headers
return
end
It seems a little wonky though, if anyone has a more elegant way I'd take it