Rails Admin is a Rails engine that provides an easy-to-use interface for managing your data. It is used to generate administration interfaces just like Active Admin, although Rails Admin automatically generates admin views for your models. Most developers prefer to be more hands-on and therefore lean more towards Active Admin.
Make sure Devise is installed and properly configured.
1. Add the gem
Open up your Gemfile and add these lines.
and run:
2. Set up Rails Admin in your app
Rails Admin will ask on which route you would like to install, leave /admin as the default, but you can choose another route.
3. Administer Your Data
Fire up the rails server and visit http://localhost:3000/admin to administer your data
4. Install Rails Admin Theme
The rails admin theme provides news colors, adjustments and a brand new tree view menu.
i). Open Gemfile and add the following gems:
ii). Inside config/application.rb, just after Bundler.require:
iii). You’ll have to run theses commands for changes to take effect:
iv). Add JavaScript
We can’t include custom js in a bundled theme with rails_admin for now, you have to add in your app/assets/javascripts/rails_admin/custom/ui.js the following code : for the javascript menu to work: