Use DataMapper instead of ActiveRecord [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-04 08:08:10

Rails 3 allows you to use Datamapper, just not by default. It you do want to use datamapper with rails 3. Just do this

    rails new project_name -m http://datamapper.org/templates/rails.rb

Rails allows you to select, you can even use the --skip-active-record option. :) ( May not be straightforward but its there.

And yeah, Datamapper is awesome. :)

The lack of documentation is a huge issue. I've begun my databasing using DataMapper and have since decided to implement a web interface for my data. Incorporating DM into Rails, as a beginner in each, has been a tremendous challenge. Hence, I'm curious, do you know of any resources which show DM/Rails usage? I'd love to be able to see something when I'm not sure how to proceed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!