Skip to content

Instantly share code, notes, and snippets.

@wycats
Created March 12, 2010 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save wycats/330207 to your computer and use it in GitHub Desktop.
Save wycats/330207 to your computer and use it in GitHub Desktop.
require ".bundle/environment"
Bundler.setup
require "action_controller/railtie"
class FooController < ActionController::Base
def bar
self.response_body = "HELLO"
end
end
class MyApp < Rails::Application
config.session_store :disabled
routes.draw do
match "/foo" => "foo#bar"
end
end
run MyApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment