NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # coding: utf-8 | |
| require 'sinatra' | |
| set server: 'thin', connections: [] | |
| get '/' do | |
| halt erb(:login) unless params[:user] | |
| erb :chat, locals: { user: params[:user].gsub(/\W/, '') } | |
| end | |
| get '/stream', provides: 'text/event-stream' do |
| -- model | |
| some sort of constant hash: | |
| HASH_NAME = { | |
| 0 => "Choose:", | |
| 1 => "On-Campus Recruiting - CSO",· | |
| 2 => "CSO Staff Referral", | |
| 3 => "Faculty Contact",· | |
| 4 => "Career Day",· | |
| 5 => "CSO Summer Job Listing",· | |
| 6 => "Alumni Contact",· |