コントローラの削除

Rails 2.3.5
書式
ruby script/destroy controller コントローラ名

RedRailsの場合、
Generatorに「controller」、Parametersに「コントローラ名」を指定。
Advanced Optionで、Modesの「destory」をチェックすること。


createが5つに対してrm(rmdir)が5つをそれぞれのファイルで確認。

>script/generate controller Sとれ
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/sとれ
      exists  test/functional/
      exists  test/unit/helpers/
      create  app/controllers/sとれ_controller.rb
      create  test/functional/sとれ_controller_test.rb
      create  app/helpers/sとれ_helper.rb
      create  test/unit/helpers/sとれ_helper_test.rb
>script/generate controller Sとれ
          rm  test/unit/helpers/sとれ_helper_test.rb
          rm  app/helpers/sとれ_helper.rb
          rm  test/functional/sとれ_controller_test.rb
          rm  app/controllers/sとれ_controller.rb
    notempty  test/unit/helpers
    notempty  test/unit
    notempty  test
    notempty  test/functional
    notempty  test
       rmdir  app/views/sとれ
    notempty  app/views
    notempty  app
    notempty  app/helpers
    notempty  app
    notempty  app/controllers
    notempty  app

Aptanaでジェネ指定時に、間違ってEnter押してもうた。
日本語のファイル名使ってもいけるんだろうか...?