Skip to content

Instantly share code, notes, and snippets.

@samnang
Created November 17, 2010 02:32
Show Gist options
  • Save samnang/702893 to your computer and use it in GitHub Desktop.
Save samnang/702893 to your computer and use it in GitHub Desktop.
get "/proof/:id" do
@color = "red"
@listing = Listing.first(:alias_id => params[:id], :portal_uuid => 'A4E7890F-A188-4663-89EB-176D94DF6774')
nokogiri :proof
end
get "/directory" do
@categories = Category.all(:portal_uuid => "A4E7890F-A188-4663-89EB-176D94DF6774",
:subcategory_count => 0,
:see_uuid => "")
nokogiri :directory
end
require 'bundler/setup'
require 'sinatra'
require 'nokogiri'
require 'app'
require 'lib/proof'
require 'lib/helpers'
require 'dm-core'
require 'mapper'
set :run, false
set :raise_errors, true
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment