Skip to content

Instantly share code, notes, and snippets.

@brianmario
Created April 21, 2011 06:11
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save brianmario/933830 to your computer and use it in GitHub Desktop.
Save brianmario/933830 to your computer and use it in GitHub Desktop.
minimal rails3 app
# minimal rails3 app
require 'action_controller'
Router = ActionDispatch::Routing::RouteSet.new
Router.draw do
root :to => 'site#index'
end
class SiteController < ActionController::Metal
def index
self.response_body = "waddup son"
end
end
run Router
@kevinsawicki
Copy link

Hey Brian, Looks great!

@ravionrails
Copy link

awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment