Undo scaffolding in Rails?
Is there any way to 'undo' the effects of a scaffold command in Rails?
Kenneth Y.
answered 09/25/19
Ruby On Rails/React Developer
Yes! You can use the command
rails destroy scaffold your_model_name
Example:
If I did :
rails generate scaffold posts
I can do:
rails destroy scaffold posts
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.