Saturday, 14 July 2012

Rails: How to revert created scaffold files

I have created user scaffold and due to some reason i want to delete all files which are created by scaffold.

to generate scaffold i Used this command

=> rails generate scaffold User name:string password:string

Two revert that files created by above command i run this command.

=> rails destroy scaffold User name:string password:string

No comments:

Post a Comment