Removing ActiveAdmin Resources

I'm on Rails 3.1.1, Ruby 1.9.2 and the last gem (pulled from github).

It's easy enough to add a resource to the excellent ActiveAdmin gem for Ruby. I also see that you can also delete the resource by deleting the corresponding .rb file from the / admin application.

I can't find anything in the documentation about this, but does anyone know if there is another way to delete the resources ... or is deleting the ActiveAdmin resource file in the right way?

+6
source share
3 answers

Yes, deleting the corresponding resource file in app/admin is the right approach :)

+16
source

To add Thomas Watson to the answer, you also need to clear the resource links in the routes.rb file.

+4
source

You can also use

 rails destroy active_admin:resource [ModelName] 

to remove a resource from ActiveAdmin.

+2
source

Source: https://habr.com/ru/post/899227/


All Articles