Created
December 27, 2013 04:19
-
-
Save tarynsauer/8142520 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Updated app.rb | |
| require 'rubygems' | |
| require 'ruby_ttt' | |
| require 'sinatra/base' | |
| require 'shotgun' | |
| require './game_helpers.rb' | |
| class TicTacToe < Sinatra::Base | |
| configure do | |
| enable :sessions | |
| set :session_secret, ENV['SESSION_SECRET'] || 'session secret' | |
| end | |
| include GameHelpers | |
| get '/' do | |
| session.clear | |
| erb :index | |
| end | |
| ... | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment