Sha256: 1c684f68c581ad5f87d1c51049bbe13daca654cdf8e8f21256c547abd7ff23c1
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
class ApplicationController < Sinatra::Base set :static, true # set up static file routing set :public, File.expand_path('..', __FILE__) # set up the static dir (with images/js/css inside) set :views, File.expand_path('../views', __FILE__) # set up the views dir get '/' do 'hello applicationcontroller!' end end
Version data entries
5 entries across 5 versions & 1 rubygems