sherwinyu/mongo-play — pull request #1 by sherwinyu (2013-09-03 04:24:19+00:00)
Title: Setup datamodels

Create model

* ```zeus g scaffold DataPoint submitted_at:time

*
* Mongoid model is created for me, with ```field :submitted_at, type: Time
* manually add a ```field :details
* ```activeadmin-mongoid``` to gemfile
*
* follow installation instructions
*
* bundle
* zeus g devise:install
* zeus g active_admin:install
* AdminUser.create :email => 'admin@example.com', :password => 'password', :password_confirmation => 'password'
* restart zeus, console, server
* confirmed: mongo
*
* use mongo_development
* show collections
*
* =>
*
* acts
admin_users
bands
counters
details
sequences
system.indexes

* > db.admin_users.find()
*
* "_id" : ObjectId("52255fc25543d844c0000001"), "current_sign_in_at" : ISODate("2013-09-03T04:09:07.570Z"), "current_sign_in_ip" : "127.0.0.1", "email" : "admin@example.com", "encrypted_password" : "$2a$10$qjdr4XKQoxCZZ3TP.rnA6eCvNnH.LzyAQMuhdc0TtjGAt/6zs1wAS", "last_sign_in_at" : ISODate("2013-09-03T04:09:07.570Z"), "last_sign_in_ip" : "127.0.0.1", "sign_in_count" : 1 }

* confirmed: localhost:3000/admin
*
* shows the dashboard!