I\'m trying to create a little app with Sinatra and ActiveRecord (3.2.3).
This is how my main file looks like:
require \"sinatra\" require \"sinatra/
The accepted answer did not work for me in Sinatra on Thin (threaded mode). Instead I used:
after do ActiveRecord::Base.connection.close end