Adapters not working with datamapper

前端 未结 2 1140
礼貌的吻别
礼貌的吻别 2021-01-21 11:55

I have the following code:

require \'sinatra\'
require \'datamapper\'

DataMapper.setup :default, \"postgres://localhost/mydb\"

However, when I

2条回答
  •  长发绾君心
    2021-01-21 12:55

    You should use dm-core instead of datamapper in your require line.

    Are you using Bundler? Provided you have bundler set up correctly, it should already be loaded for you.

提交回复
热议问题