Search code examples
rubymongodbsinatraactivemodel

Is it possible to use ActiveModel with Sinatra?


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?


Solution

  • To use MongoDB with an ORM you might want to consider using Mongomapper or Mongoid. They will offer you an Active Record like ORM.