How to reverse a 'rails generate'

前端 未结 17 1545
一个人的身影
一个人的身影 2020-12-02 03:10

I want to delete all the files it created and roll back any changes made, but not necessarily to the database, but more to the config files.

I\'d like to automatical

17条回答
  •  悲哀的现实
    2020-12-02 03:56

    rails destroy controller Controller_name was returning a bunch of errors. To be able to destroy controller I had to remove related routes in routes.rb. P.S. I'm using rails 3.1

提交回复
热议问题