AdminCore
A flexible admin framework for Rails
⚠️ AdminCore is not production ready.
Getting Started
Add this line to your application's Gemfile:
gem 'admin_core'
Re-bundle, then run the installer:
$ rails g admin_core:install
This generates:
- app/controllers/admin/application_controller.rb
- app/views/admin/application.html.erb
- config/initializers/admin_core.rb
There is another generator to generate resource manager class:
$ rails g admin_core:resource_manager user
This generates:
- app/models/admin/user.rb
Add route to AdminCore:
# config/routes.rb
Rails.application.routes.draw do
namespace :admin do
resources :users
end
end
Restart server and access http://localhost:3000/admin/users