2

I created a scaffold "example" and have made many changes to its controller and views.

Now I want to rename it to "sample", is there any way to do it without breaking anything ? it will be difficult to manually edit controller, model, views and migration file so I was hoping there may be something to ease up this.

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
iCyborg
  • 4,699
  • 15
  • 53
  • 84

1 Answers1

5

It's currently not possible.

You will need to edit the existing controller manually. You can use and advanced IDE, such as RubyMine, to help you with the job.

Also, I don't suggest you to change the existing scaffold. You can create a new one, make sure it's working properly, then remove the old one.

Be careful to not rename migrations or your app it's likely to break. Migrations should not be changed once applied, to change the schema you should create a new migration.

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364