Skip to content

Instantly share code, notes, and snippets.

@Locke23rus
Forked from brianmario/config.ru.rb
Created May 2, 2011 23:45
Show Gist options
  • Select an option

  • Save Locke23rus/952584 to your computer and use it in GitHub Desktop.

Select an option

Save Locke23rus/952584 to your computer and use it in GitHub Desktop.

Revisions

  1. @brianmario brianmario revised this gist Apr 21, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions config.ru.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # minimal rails3 app

    require 'action_controller'

    Router = ActionDispatch::Routing::RouteSet.new
  2. @brianmario brianmario revised this gist Apr 21, 2011. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion config.ru.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    require 'action_dispatch'
    require 'action_controller'

    Router = ActionDispatch::Routing::RouteSet.new
  3. @brianmario brianmario created this gist Apr 21, 2011.
    15 changes: 15 additions & 0 deletions config.ru.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    require 'action_dispatch'
    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