View the Project on GitHub codn/adminpanel
This generator lets you save your database data in json format for your seeds.
rails g adminpanel:dump category
this will creates a categories.json
file, and it’s going to insert the commands to populate your database into your db/seeds.rb it Note: This is going to search for Adminpanel::Category model, you can change that model for the one you want to dump.