Project

k_admin

0.0
No commit activity in last 3 years
No release in over 3 years
Simple admin interface for data administration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.0.1
~> 5.1
 Project Readme

KAdmin

Simple admin interface for data administration.

Installation

Add this line to your application's Gemfile:

gem 'k_admin'

And then execute:

$ bundle

Or install it yourself as:

$ gem install k_admin

Usage

To add a resource to the admin dashboard just run the following command

rails g admin_resource model_name

That'll create the following files, which you can afterwards adapt to your model

/app/controllers/admin/model_name_controller.rb # model controller
/app/decorators/model_name_decorator.rb # model decorator
/app/views/admin/_form.html.erb # model form

All the remaining views/controllers logic will be defaulted to this engine files. To override them just create them on your local repo and you're good to go.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kollegorna/k-admin.

License

The gem is available as open source under the terms of the MIT License.