I want to use ActiveModel in my Sinatra models to work with mongodb's Ruby driver. Is that a straight forward exercise or will there be problems?
Asked
Active
Viewed 392 times
2
-
Not sure what do you want to use. If u just need activerecord as your ORM, and create some models class like `class Data < ActiveRecord::Base`, the answer is yes. – halfelf Sep 18 '12 at 05:25
-
1@halfelf, ActiveRecord doesn't support Mongodb. You don't really need activerecord to be able to have ActiveRecord like models. That goodness comes from ActiveModel. – Roman Sep 18 '12 at 05:30
1 Answers
1
To use MongoDB with an ORM you might want to consider using Mongomapper or Mongoid. They will offer you an Active Record like ORM.

three
- 8,262
- 3
- 35
- 39