Let's say I have a controller and model called Car/Cars in Rails. Then I wanna change it to Vehicle/Vehicles. How to I achieve that?
A:
You need change the name of file, the name of director and in last, the name of Class.
shingara
2010-09-30 18:03:14
A:
I don't know if there's any sort of automated process in Rails to do this. It boils down to a lot of find/replace for your instances of Car
with Vehicle
and cars
with vehicles
, as well as in all filenames, routes, and the database.
theIV
2010-09-30 18:04:35