Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A 3 page web app we use once or twice a year for our open house. It allows people to enter their contact info, and then we select random winners from that pool of information. Written using ruby, sinatra, and datamapper.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 db
Octocat-spinner-32 public
Octocat-spinner-32 views
Octocat-spinner-32 Gemfile
Octocat-spinner-32 config.ru
Octocat-spinner-32 openhouse.rb
Octocat-spinner-32 readme.textile
readme.textile

OpenHouse by SabreTech

We use this app once or twice a year at our open houses, to collect names, phones, emails, and addresses. At the end of the open house we access the “random” url to pick winners for our prize drawings.

Required gems?

  • sinatra
  • haml
  • dm-core
  • dm-timestamps
  • sqlite3-ruby
  • do_sqlite3

Server

I used Passenger with REE, but anything rack compliant will work. For testing I installed the “thin” gem and just ran /opt/ree/bin/ruby openhouse.rb and it started a server at localhost:4567.

Something went wrong with that request. Please try again.