Building separate admin app for SaaS product

I think you should avoid a separate app. Duplicating all the model validation/domain logic that you’ve already built is a painful, error prone task.

You should check out Administrate, RailsAdmin, and ActiveAdmin to see is one of those solutions might fit your needs.

If you have to roll your own, do it in the same app. Try creating an AdminController base controller that you can use that authorizes admin users and redirects non-admin users out. Administrative pages can then inherit from the AdminController.

1 Like