Rails: renaming a controller and corresponding model

前端 未结 5 895
南笙
南笙 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 08:11

    You can also use rails_refactor gem to rename controller, model, etc for more info check https://github.com/jcrisp/rails_refactor

提交回复
热议问题