I am trying out mongodb with Rails 3. after following instructions from mongomapper's site and a few others, i haven't been able to solve one small issue...
No value provided for required options '--orm'
I added a file mongo.rb in my config folder to make stuff tick
MongoMapper.connection = Mongo::Connection.new('localhost', 27017)
MongoMapper.database = "cobboc_#{Rails.env}"
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
MongoMapper.connection.connect if forked
end
end
The project rails3-generators provides MongoMapper model generators to solve your issue. Require the gem in your Gemfile.
Note, the Rails 3 generators have moved to the mongo_mapper gem