I have the following code:
require \'sinatra\' require \'datamapper\' DataMapper.setup :default, \"postgres://localhost/mydb\"
However, when I
You should use dm-core instead of datamapper in your require line.
dm-core
datamapper
require
Are you using Bundler? Provided you have bundler set up correctly, it should already be loaded for you.
Uninstalling dm-postgres-adapter 1.2.0.rc2 fixed it.