Sinatra + 1.9.2-p0

So, having problems with the Sinatra gem once you upgraded or installed 1.9.2-p0? Hey, it’s cool. I’ve got the fix.

First it seems like the run code is borked, so you need this piece:

set :run, true

Second you’ll need to tell Sinatra where the views are located (assuming you need to):

set :views, File.dirname(__FILE__) + '/views'

Thirdly you’ll need to tell Sinatra where the static, aka public, files are located:

set :public, File.dirname(__FILE__) + '/public'

Posted on August 27 2010

Notes

Tumblr theme designed by The City Loop.