Rails: renaming a controller and corresponding model

前端 未结 5 893
南笙
南笙 2021-01-21 07:27

Is there an easy way to rename a controller and model in my app and all the instances in the corresponding code?

I\'m using textmate, would this be as simple as using t

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 07:54

    To rename controller and model use this gem https://github.com/jcrisp/rails_refactor

提交回复
热议问题