Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to rename rails controllers [duplicate]

Is there an easy way to rename a controller? The only way I know of is to either do it by hand or generate a new controller move the code over and destroy the old one. Seems like there has to be a programmatic way to do this.

like image 610
hadees Avatar asked Aug 03 '10 00:08

hadees


1 Answers

Some IDE's (like IntelliJ's RubyMine) will let you Refactor -> Rename a file/variable/method etc, although it's not as reliable in a dynamic language like Ruby as it is in a language like Java.

like image 141
Zachary Wright Avatar answered Oct 13 '22 20:10

Zachary Wright