Skip to content

Instantly share code, notes, and snippets.

@beathyate
Forked from wycats/omg.rb
Created March 16, 2010 13:02
Show Gist options
  • Save beathyate/333936 to your computer and use it in GitHub Desktop.
Save beathyate/333936 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