scaffoldで作成されるもの
C:\rails\rjs_tutorial>ruby script/generate scaffold category name:string descrip
tion:text
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/categories
create app/views/layouts/
exists test/functional/
create test/unit/
exists public/stylesheets/
create app/views/categories/index.html.erb
create app/views/categories/show.html.erb
create app/views/categories/new.html.erb
create app/views/categories/edit.html.erb
create app/views/layouts/categories.html.erb
identical public/stylesheets/scaffold.css
create app/controllers/categories_controller.rb
identical test/functional/categories_controller_test.rb
create app/helpers/categories_helper.rb
route map.resources :categories
dependency model
exists app/models/
exists test/unit/
create test/fixtures/
create app/models/category.rb
create test/unit/category_test.rb
create test/fixtures/[[categories.yml]]
exists db/migrate
create db/migrate/20090123065742_create_categories.rb
最終更新:2009年01月23日 16:00