Skip to content

Instantly share code, notes, and snippets.

@randallreedjr
Last active May 19, 2018 02:12
Show Gist options
  • Save randallreedjr/bfe8e752fb992dba16b5318dbea1e443 to your computer and use it in GitHub Desktop.
Save randallreedjr/bfe8e752fb992dba16b5318dbea1e443 to your computer and use it in GitHub Desktop.
# Rails 5
$ rails new my-app --skip-active-record -T
# Rails 4
$ rails new my-app --skip-activerecord -T
Gemfile
# Use Mongodb for database
gem 'mongo', '~> 2.2', '>= 2.2.5'
gem 'mongoid', '~> 6.1.0'
# Use rspec for testing
gem 'rspec-rails'
$ bundle install
$ rails g rspec:install
$ rails g mongoid:config
application.rb
# Setup Mongodb
Mongoid.load! './config/mongoid.yml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment