I am quite new to Ruby on Rails and I am loving it so far. I have to
on a project with MongoDB and I noticed a few tutorials tell us to
a new app without the ActiveRecord. I wonder if it’s the best solution
isn’t a good idea to use ActiveRecord with Mongo? Maybe in the future,
we need to change the database, wouldn’t it just the case of changing
database settings if we use ActiveRecord? I think there would be some
that would make the bridge between ActiveRecord <-> MongoDB transparent
they do with MySQL or Postgres. Innocent me?
Also, because it’s schemeless, I am a bit lost when it comes to the
workflow. Migrations are no longer necessary, right? So what would be
We are probably going to use MongoID, but maybe MongoMapper. So, let’s
Should I create a model, configure the model accordingly to MongoID and
then controller? Or scaffold / scaffold_controller (never used this
(To be honest I never knew what was better if scaffold or model and
Hope I am not asking too much!