subscribe to RSS
click here
stack

Rails 3.0 and MongoMapper

Here is some notes regarding MongoMapper usage in a Rails 3 application.

First install Rails 3:

Create config/initializers/mongo.rb file:

Append Gemfile, for the edge version:

UPDATE: For a more stable version (as Jacques Crocker mentioned in the comments):

Run “bundle install” start your Mongo server and that’s all! You can now play with MongoMapper and Rails 3.

Example model app/model/paper.rb: