Sinatra Example: Mongoid and HAML Template Engine. If you have Mongoid gem version 2.1.0 you'll require mongodb 1.8.0 The application is built as modular approach. Easy to run with unicorn.