The purpose of administration zero is to generate a pre-built administration panel into a rails application.
- Beautiful interface
- Paginated results
- Sortable and filterable
- Exportable data
- Toastr for flash messages
- Show fields with errors in red
- Determine time zone automatically
- Easy authentication system
- Admin scaffolds
bundle add administration-zero
rails generate admin:install
Then run bundle install
Then run rails db:migrate db:seed
You can access the admin panel in /admin
, using email: "[email protected]", password: "Password9957"
You'll need to create a model to be administrated, if you don't have one. for this example let's use the following:
rails generate model posts title:string body:text published:boolean
Now you're ready to generate your admin scaffolds.
rails generate admin:scaffold posts title:string body:text published:boolean
To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/lazaronixon/administration-zero. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the AdministrationZero project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.