Instant Rails 基本的な処理を作成

Todo モデルを介在して todos テーブルのデータ作成(Create)、読み出し(Read or Retrieve)

更新(Update)、削除(Delete or Destroy)つまり「CRUD操作」用プログラムを作成

アプリケーションの制御や表示のコードを生成するため scaffold 「足場」というコマンドを利用

todo_app> ruby script/generate scaffold Todo
   exists app/controllers/
   exists app/helpers/
   create app/views/todos
   exists app/views/layouts/
   exists test/functional/
 dependency model
   exists app/models/
   exists test/unit/
   exists test/fixtures/
  identical app/models/todo.rb
  identical test/unit/todo_test.rb
  identical test/fixtures/todos.yml
   create app/views/todos/_form.rhtml
   create app/views/todos/list.rhtml
   create app/views/todos/show.rhtml
   create app/views/todos/new.rhtml
   create app/views/todos/edit.rhtml
   create app/controllers/todos_controller.rb
   create test/functional/todos_controller_test.rb
   create app/helpers/todos_helper.rb
   create app/views/layouts/todos.rhtml
   create public/stylesheets/scaffold.css

ブラウザで動作確認 http://localhost:3000/todos アクセス

とりあえず、Todoを入力