Sha256: 9c2351d87401d4585f03511b7016562849c087176dc9f2fd0453637789cd25dc

Contents?: true

Size: 657 Bytes

Versions: 16

Compression:

Stored size: 657 Bytes

Contents

#$:.unshift("/home/isaiah/codes/ruby/rack/lib")
require 'sinatra'

class Vertx < Sinatra::Base
  get '/' do
    "<h1>Hello Sinatra!</h1>"
  end

  post "/home/test" do
    #require 'pp'
    #pp env['rack.input'].gets
    #require 'rack/multipart'
    #puts "=========="
    ##pp Rack::Multipart.parse_multipart(env)
    #puts "=========="
    ##pp env
    #pp request.params
    #puts "=========="
    a = ""
    params.each{|k,v| a << "#{k}:#{v}\n"}
    a
  end

  get '/app' do
    <<EOF
      <h1>Powered by Jubilee</h1>
      <a href="http://www.github.com/isaiah/jubilee">Homepage</a>
      <p>Date: #{Time.now.strftime("%m %d, %Y")}</p>
EOF
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jubilee-1.1.2-java test/sinatra_app/app.rb
jubilee-1.1.0-java test/sinatra_app/app.rb
jubilee-1.1.0.rc3 test/sinatra_app/app.rb
jubilee-1.1.0.rc2 test/sinatra_app/app.rb
jubilee-1.1.0.rc1 test/sinatra_app/app.rb
jubilee-1.0.2 test/sinatra_app/app.rb
jubilee-1.0.1 test/sinatra_app/app.rb
jubilee-1.0.0 test/sinatra_app/app.rb
jubilee-1.0.0.beta1 test/sinatra_app/app.rb
jubilee-0.5.0 test/sinatra_app/app.rb
jubilee-0.4.1 test/sinatra_app/app.rb
jubilee-0.4.0 test/sinatra_app/app.rb
jubilee-0.2.2 test/sinatra_app/app.rb
jubilee-0.2.1 test/sinatra_app/app.rb
jubilee-0.2.0 test/sinatra_app/app.rb
jubilee-0.1.2 test/sinatra_app/app.rb