Skip to content

Instantly share code, notes, and snippets.

@taylor
Created February 15, 2012 10:28
Show Gist options
  • Save taylor/1834910 to your computer and use it in GitHub Desktop.
Save taylor/1834910 to your computer and use it in GitHub Desktop.
Testing Ruby VMs
require 'sinatra'
require 'sinatra/synchrony'
class ShootoutApp < Sinatra::Base
register Sinatra::Synchrony
get '/' do
@name = "Shootout '12"
erb :index
end
end
require 'rubygems'
require 'bundler'
Bundler.require(:default)
require './app'
run ShootoutApp
source :rubygems
gem 'sinatra'
gem 'sinatra-synchrony'
gem 'thin'
<html>
<!-- put me in views/index.erb -->
<head>
<title><%= @name %></title>
</head>
<body>
<h1><%= @name %> <small>Hello World!</small></h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment