1. 17 12月, 2008 1 次提交
    • J
      Introduce Rails Metal · 8c3a5436
      Joshua Peek 提交于
        # app/metal/poller.rb
        class Poller < Rails::Rack::Metal
          def call(env)
            if env["PATH_INFO"] =~ /^\/poller/
              [200, {"Content-Type" => "application/json"}, Message.recent.to_json]
            else
              super
            end
          end
        end
      
      * There is a generator to help you get started
          `script/generate metal poller`
      
      * Also, metal bits can be ran standalone with rackup
          `rackup app/metal/poller.rb`
      8c3a5436
  2. 16 12月, 2008 18 次提交
  3. 15 12月, 2008 3 次提交
  4. 13 12月, 2008 1 次提交
  5. 12 12月, 2008 3 次提交
  6. 11 12月, 2008 13 次提交
  7. 10 12月, 2008 1 次提交