Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 302 Bytes
require "rubygems"
require "bundler"
Bundler.setup
require 'sinatra/base'
load 'config.rb'
class Hit < ActiveRecord::Base
end
class DbReplicationDemoApp < Sinatra::Base
get "/" do
hit = Hit.create(:ip => request.ip)
"Hi #{hit.ip} at #{hit.created_at}"
end
end
run DbReplicationDemoApp
Something went wrong with that request. Please try again.