1 2 3 4 5 6 7 8 9
require 'sinatra' require_relative '../db' $config = Config.first get '/' do @posts = Post.all erb :index end