Sha256: e09215da12ce1ea4b9fe39287a238fe72466b5da4fe17cee4a9a4b1717fbe5ca
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
= Mongo DB generators The Mongo DB Rails 3 generators includes generators for both Mongo Mapper and Mongoid. Add the following to your Gemfile in your Rails 3 project: gem 'mongo_ext' gem 'mongoid' gem "mongo_mapper", :git => 'http://github.com/merbjedi/mongomapper.git', :branch => 'rails3' $ bundle install == Mongoid Includes the following generators * mongoid:setup - setup Rails app to use Mongoid * mongoid:model - generates a Mongoid model Example Use: Setup use of Mongoid rails g mongoid:setup Create new model Person with name attribute rails g mongoid:model person name:string == Mongo Mapper Includes the following generators * mongo_mapper:setup - setup Rails app to use Mongo Mapper * mongo_mapper:model - generates a Mongo Mapper model Example Use: Setup use of Mongo Mapper rails g mongoid:setup Create new Mongo Mapper model Person with name attribute rails g mongoid:model person name:string = Notice This is currently a work in progress. Please feel free to join in the effort and fork this project and fix whatever bugs etc.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_db_gen-0.3.4 | README.rdoc |