Adapters not working with datamapper

前端 未结 2 1116
礼貌的吻别
礼貌的吻别 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.

    0 讨论(0)
  • 2021-01-21 12:55

    Uninstalling dm-postgres-adapter 1.2.0.rc2 fixed it.

    0 讨论(0)
提交回复
热议问题