sinatra/sinatra — Issue #430: set :public and :public_directory work differently
Author: L2G
Created: 2011-12-15 20:59:09+00:00
State: open

I have a Sinatra application that includes this line:

set :public, File.join(File.dirname(__FILE__),'..','www')

This gives me the warning that I should use :public_directory instead, but it works as I expect.

However, if I change it...

set :public_directory, File.join(File.dirname(__FILE__),'..','www')

Then static pages that previously worked are broken (404 Not Found).