Skip to content

Instantly share code, notes, and snippets.

@anildigital
Forked from brianmario/config.ru.rb
Created September 16, 2011 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anildigital/1221173 to your computer and use it in GitHub Desktop.
Save anildigital/1221173 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment