After its initial construction, I have added a couple of columns to my Books database table. As I actually want my views to reflect and show the fields related to all these new added columns I figured it'd be cheaper to just delete everything that's inside the views/books/ folder, and have some scaffold code regenerate it from the ground up. I don't want to delete either the controller or the model file, as both already contain some logic I'd like to keep. I'm fine editing those files myself on a on-need basis.
How to accomplish the task?
From https://stackoverflow.com/a/4333530/130758 I can see scaffold seems to have options for both controllers and models, but unfortunately, not for views. Am I bound to have to do this grunt work by myself? I'm aware I can just create a new git branch, delete the + model + views and regenerate all of them, copy paste the the views back into the original branch and I'm ready to go, but I'd prefer a more scientific approach, whenever possible.
How to to create a new rails app using scaffold command with only a json interface (to use with angularjs)?