Rails-2.2.2で動いているRailsアプリをRails-2.3.2に移行する場合、

   1  % rake rails:update

を行うと便利ですが、これを実行すると、以下のようなファイルが影響を受けます。

   1  # Changed but not updated:
   2  #   (use "git add/rm <file>..." to update what will be committed)
   3  #
   4  #       deleted:    app/controllers/application.rb
   5  #       modified:   config/boot.rb
   6  #       modified:   config/environment.rb
   7  #       modified:   public/javascripts/controls.js
   8  #       modified:   public/javascripts/dragdrop.js
   9  #       modified:   public/javascripts/effects.js
  10  #       modified:   public/javascripts/prototype.js
  11  #
  12  # Untracked files:
  13  #   (use "git add <file>..." to include in what will be committed)
  14  #
  15  #       app/controllers/application_controller.rb
  16  no changes added to commit (use "git add" and/or "git commit -a")

ApplicationControllerのファイル名が、application_controller.rbに変更になっています。一貫性を持たせるためでしょうね。

posted by Png genki on Sat 28 Mar 2009 at 20:46

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry1385
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ