Agile Web Development with Rails, Edition 4

Agile Web Development with Rails, Edition 4

7.1 Iteration B1: Validation and Unit Testing 6.2 Iteration A2: Making Prettier Listings

6.3 Playtime

Configuration management using Git.

Configure Git.

git repo-config --get-regexp user.*
user.name Sam Ruby
user.email rubys@intertwingly.net

Look at the .gitignore that Rails helpfully provided...

cat .gitignore
.bundle
db/*.sqlite3
log/*.log
tmp/

Initialize repository.

git init
Initialized empty Git repository in /home/rubys/git/awdwr/edition4/work-30/depot/.git/

Add all the files.

git add .

Initial commit.

git commit -m "Depot Scaffold"
[master (root-commit) 3b640f0] Depot Scaffold
 62 files changed, 10835 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 Gemfile
 create mode 100644 Gemfile.lock
 create mode 100644 README
 create mode 100644 Rakefile
 create mode 100644 app/controllers/application_controller.rb
 create mode 100644 app/controllers/products_controller.rb
 create mode 100644 app/helpers/application_helper.rb
 create mode 100644 app/helpers/products_helper.rb
 create mode 100644 app/models/product.rb
 create mode 100644 app/views/layouts/application.html.erb
 create mode 100644 app/views/products/_form.html.erb
 create mode 100644 app/views/products/edit.html.erb
 create mode 100644 app/views/products/index.html.erb
 create mode 100644 app/views/products/new.html.erb
 create mode 100644 app/views/products/show.html.erb
 create mode 100644 config.ru
 create mode 100644 config/application.rb
 create mode 100644 config/boot.rb
 create mode 100644 config/database.yml
 create mode 100644 config/environment.rb
 create mode 100644 config/environments/development.rb
 create mode 100644 config/environments/production.rb
 create mode 100644 config/environments/test.rb
 create mode 100644 config/initializers/backtrace_silencers.rb
 create mode 100644 config/initializers/inflections.rb
 create mode 100644 config/initializers/mime_types.rb
 create mode 100644 config/initializers/secret_token.rb
 create mode 100644 config/initializers/session_store.rb
 create mode 100644 config/locales/en.yml
 create mode 100644 config/routes.rb
 create mode 100644 db/migrate/20110711000001_create_products.rb
 create mode 100644 db/schema.rb
 create mode 100644 db/seeds.rb
 create mode 100644 doc/README_FOR_APP
 create mode 100644 lib/tasks/.gitkeep
 create mode 100644 public/404.html
 create mode 100644 public/422.html
 create mode 100644 public/500.html
 create mode 100644 public/favicon.ico
 create mode 100644 public/images/cs.jpg
 create mode 100644 public/images/debug.jpg
 create mode 100644 public/images/logo.png
 create mode 100644 public/images/rails.png
 create mode 100644 public/images/rtp.jpg
 create mode 100644 public/images/ruby.jpg
 create mode 100644 public/images/wd4d.jpg
 create mode 100644 public/index.html
 create mode 100644 public/javascripts/application.js
 create mode 100644 public/javascripts/controls.js
 create mode 100644 public/javascripts/dragdrop.js
 create mode 100644 public/javascripts/effects.js
 create mode 100644 public/javascripts/prototype.js
 create mode 100644 public/javascripts/rails.js
 create mode 100644 public/robots.txt
 create mode 100644 public/stylesheets/.gitkeep
 create mode 100644 public/stylesheets/depot.css
 create mode 100644 public/stylesheets/scaffold.css
 create mode 100755 script/rails
 create mode 100644 test/fixtures/products.yml
 create mode 100644 test/functional/products_controller_test.rb
 create mode 100644 test/performance/browsing_test.rb
 create mode 100644 test/test_helper.rb
 create mode 100644 test/unit/helpers/products_helper_test.rb
 create mode 100644 test/unit/product_test.rb
 create mode 100644 vendor/plugins/.gitkeep

7.1 Iteration B1: Validation and Unit Testing 6.2 Iteration A2: Making Prettier Listings