use Rack::Static, :urls => ['/stylesheets', '/images'], :root => 'public'
run proc { |env| [200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html')] }
I get a private `open 'method called for Rack :: File: Class when I run. I don’t really see where the problem is. Running rack 1.1. Help me please...
source
share