Skip to content
Simple admin interface for MongoMapper (mongo) & DataMapper (dm) models.
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Bowtie: Zeroconf admin scaffold for your MongoMapper & DataMapper models

Bowtie reads the information on your models and creates a nice panel in which you can view, edit and destroy records easily.

How does it look?



Include it in your Gemfile and update your bundle:

source ''
gem 'bowtie'

Or install it by hand:

$ gem install bowtie


Mount Bowtie wherever you want by editing your file, after loading your models. You can optionally include the admin/pass combination for the panel.

require 'my_app' # models are loaded
require 'bowtie'

BOWTIE_AUTH = {:user => 'admin', :pass => '12345' }

app = {
  map "/admin" do
    run Bowtie::Admin

  map '/' do
    run MyApp

run app

Now you can go to /admin in your app's path and try out Bowtie using your user/pass combination. If not set, it defaults to admin/bowtie.

Important notes

Bowtie requires a few gems but they're not included in the gemspec to prevent forcing your from installing unneeded gems. Therefore you need to make sure that Bowtie will have the following gems to work with:

For DataMapper models:

  • dm-core
  • dm-validations
  • dm-aggregates
  • dm-pager

For MongoMapper models:

  • mongo_mapper

From version 0.3, Bowtie is meant to be used from DataMapper 1.0.0 on. For previous versions please install with -v=0.2.5.


  • Better handling of types (Text, JSON, IPAddress) in #show
  • Better handling of relationships in #show


(c) 2010-2011 - Tomás Pollak for Fork Ltd. Released under the MIT license.

Something went wrong with that request. Please try again.