shelling

Today’s toy — Rack and RailTie

 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
#!/usr/bin/env ruby
 
require “rubygems”
require “rack”
require “rack/showexceptions”
require “rack/request”
require “rack/response”
 
 
module Rack
  class Hello
    def call(env)
      [200,{“Content-Type” => “text/plain”}, [“hello, world!”]]
    end
  end
end
 
 
 

https://gist.github.com/af7e572c2dc973add221

http://guides.rails.info/3_0_release_notes.html

http://rizwanreza.com/2009/12/20/revamped-routes-in-rails-3

http://guides.rubyonrails.org/rails_on_rack.html

Posted via web from shelling’s posterous | Comment »


To Tumblr, Love PixelUnion