I properly installed MongoDB and got it running on my OSX. The first app I created using MongDB and Rails3 was titled 'todo". Per the instructions on railscasts, I created a file (config/initilializers/ mongo.rb) and added this line:
MongoMapper.database = "todo-
#{Rails.env}"
Presumably, this created the files that appeared in my /data/db/ file entitled "todo- development". When I used the generate command in Rails to create the models, the data was correctly stored in this file. All good, up to this point.
The problem now is that I can't seem to create NEW files in the /data/db file when I create new apps with Rails. (I think) the data file should be created from the initializer file (ex:
MongoMapper.database = "newproject-
#{Rails.env}"
that I add to each new app. But it is not.
Here's my gemfIle (that worked with my first app!:
require 'rubygems'
gem 'mongo', '1.0'
source 'http://gemcutter.org'
gem 'rails', '3.0.0.beta4'
gem "mongo_mapper"
gem 'bson_ext', '1.0'
Any help would be appreciated!