getting started guide or docs?

11 views
Skip to first unread message

Alan B

unread,
Jun 28, 2010, 1:45:38 PM6/28/10
to MongoMapper
Hi, could someone please point me to some docs to get off the ground
with MM. So far, I have this:

==Gemfile
gem "mongo_mapper"

== foobar.rb
class Foobar
include MongoMapper::Document
key :name
end

then in the console:
> MongoMapper.database = "mongo_demo_development"

but I get an error when I try the following:

ruby-1.9.1-p378 > Foobar.count
NameError: uninitialized constant
MongoMapper::Plugins::Caching::ClassMethods

help!

Josef Richter

unread,
Jun 29, 2010, 7:40:36 AM6/29/10
to MongoMapper
see http://railstips.org/blog/labels/mongomapper/

or have a look at http://mongoid.org/ which has very nice
documentation

Kyle Banker

unread,
Jun 29, 2010, 8:08:27 AM6/29/10
to mongo...@googlegroups.com
I've often found that reading the MongoMapper test cases is the quickest way of knowing how it works and what exactly you can do with it.

--
You received this message because you are subscribed to the Google
Groups "MongoMapper" group.
For more options, visit this group at
http://groups.google.com/group/mongomapper?hl=en?hl=en

Jon Homan

unread,
Jun 29, 2010, 9:22:26 AM6/29/10
to mongo...@googlegroups.com

Just saw this come up on twitter.
Reply all
Reply to author
Forward
0 new messages