$ rails new demo_app
2.1 Update Gemfile for Chapter 2
$ bundle update
$ bundle install
* apt-get install nodejs. `rails generate scaffold` failed due to missing JS runtime
$ rails generate scaffold User name:string email:string
Vagrant forward port 3000
$ bundle exec rake db:migration
gitignore /.vagrant
delete /.vagrant
Merge branch 'master' into ch2
$ b rails generate scaffold Micropost content:string user_id:integer
$ bundle exec rake db:migrate
model:microspost validate max length 140
User 1:m Micropost
moved demo_app to root. heroku doesnt like it when you push a subdir
heroku...
- add ruby 2.0.0 to gemfile
- $ rake assets:precompile