1

Is there a way to make ActiveAdmin show information from a resource that isn't a database?

I have a model that's instantiated from JSON received remotely. I would like to get ActiveAdmin to show this information.

If I seed the database, ActiveAdmin will show the same number of records that I have in the seed file. When I comment out the seed, it shows nothing.

Hugo
  • 2,186
  • 8
  • 28
  • 44

1 Answers1

1

Yes, but you will have to change ActiveAdmin code, and will not be trivial.

Active admin depends on rails which depends on active record.

It also extensively use active record features on the code.

The best path to go is to write a db adapter for Rails using your API. There is one question here that addresses how to create a DB adapter.

Community
  • 1
  • 1
fotanus
  • 19,618
  • 13
  • 77
  • 111