To configure admin panel for your rails app, simply follow the steps given below:
In gemfile:
gem 'activeadmin'
If you are using Rails >= 3.1, you must also include a beta version of MetaSearch and sass-rails:
gem 'activeadmin'
gem 'sass-rails'
gem "meta_search", '>= 1.1.0.pre'
Bundle install, obviously!
rails generate active_admin:install
The installer creates an initializer used for configuring defaults used by Active Admin as well as a new folder at app/admin to put all your admin configurations.
Migrate your db and start the server:
$> rake db:migrate
$> rails server
Visit http://localhost:3000/admin and log in using:
Voila! You're on your brand new Active Admin dashboard.
To register your first model, run:
$> rails generate active_admin:resource [MyModelName]
This creates a file at app/admin/my_model_names.rb for configuring the resource. Refresh your web browser to see the interface.
For customization, use following links:
In gemfile:
gem 'activeadmin'
If you are using Rails >= 3.1, you must also include a beta version of MetaSearch and sass-rails:
gem 'activeadmin'
gem 'sass-rails'
gem "meta_search", '>= 1.1.0.pre'
Bundle install, obviously!
rails generate active_admin:install
The installer creates an initializer used for configuring defaults used by Active Admin as well as a new folder at app/admin to put all your admin configurations.
Migrate your db and start the server:
$> rake db:migrate
$> rails server
Visit http://localhost:3000/admin and log in using:
- User: [email protected]
- Password: password
Voila! You're on your brand new Active Admin dashboard.
To register your first model, run:
$> rails generate active_admin:resource [MyModelName]
This creates a file at app/admin/my_model_names.rb for configuring the resource. Refresh your web browser to see the interface.
For customization, use following links:
- http://activeadmin.info/docs/3-index-pages.html
- http://activeadmin.info/docs/5-forms.html
- http://activeadmin.info/docs/6-show-pages.html
- http://activeadmin.info/docs/2-resource-customization.html