How to use rails_admin with Sinatra?

173 views Asked by At

I have a Sinatra app and I want to use RailsAdmin as my admin engine with models in Sinatra app. How can I do that without having to duplicate the model code for RailsAdmin project

1

There are 1 answers

1
roman-roman On

I don't think it can be easily done. rails_admin relies on models being backed by ActiveModel, so you cannot feed it with your plain-ruby models.

You can try someting like this though https://github.com/ratnakarrao-nyros/sinatra-admin, but it doesn't look that well maintained.