Re-Generating Scaffold

Is there any way to re-generate views from newly updated model?


Unless you've made a lot of changes to the scaffold, it's probably easier just to overwrite the current scaffold:

./script/generate -f scaffold Model

I had the same need, I just backed up some changes and did a destroy/generate, Take care, destroy deletes Everything related to the Model :

rails destroy scaffold Model -f

before I generate again.

rails generate scaffold Model

The scaffold is not intended to create the interface, only to make a starting point for further development. I'm not sure it's even possible (without a lot of unnecessary work) to redo a scaffold, it's much quicker to manually edit the view and controller anyway.

Need Your Help

Oracle PL SQL: Delete Duplicate Rows and Increment Duplicates in Another Column

sql oracle plsql

I am inserting data into another table that will delete the duplicates and sum up the quantity for those duplicates in another column. I am new to PL SQL so I am having trouble building this table.

Is my Access Token strategy a good practice or vulnerable?

php mysql api encryption api-design

I am developing API for my real-time Web Application to make it work with Mobile App.