Skip to content

Instantly share code, notes, and snippets.

@spastorino
Created March 15, 2012 20:38
Show Gist options
  • Select an option

  • Save spastorino/2046744 to your computer and use it in GitHub Desktop.

Select an option

Save spastorino/2046744 to your computer and use it in GitHub Desktop.
require 'action_controller/railtie'
class HelloController < ActionController::Metal
def world
self.response_body = 'Hello World!'
end
end
Rack::Handler::WEBrick.run HelloController.action(:world), :Port => 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment