Renaming a model in Rails

When renaming a model in Rails (2.3), there are a range of files you may need to change: Create a migration to rename the database table: (rename_table :oldname, :newname) Rename the model. Edit any associations in other models. Rename the controller (if required) Modify routes.rb Modify any links in views. Rename views. Rename the model… Continue reading Renaming a model in Rails

Categorised as Rails