スマートフォン用の表示で見る

sinatra

Sinatra is a DSL for quickly creating web-applications in Ruby with minimal effort:

  # myapp.rb
  require 'rubygems'
  require 'sinatra'
  get '/' do
    'Hello world!'
  end

Install the gem and run with:

  sudo gem install sinatra
  ruby myapp.rb