0.0
No commit activity in last 3 years
No release in over 3 years
UnknownAdmin makes it easy to create a zero-configuratin admin-tool for your models, but still allows a lot of cusomizations to make it fit your needs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

unknown? Admin Backend

unknown-admin is a basic framework for administration backend purposes. It is heavily based on Bootstrap and inherited_resources. It is focused on the DRY principle throughout.

Through template inheritance there is hardly more to do, than creating an empty controller for your model. It completely implements all CRUD methods and provides default views for them. If you want, you can override a lot, of course.

Enjoy.

Usage

Rails

In your Gemfile:

Add to your asset-block:

gem 'bootstrap-sass'

Add the unknown-admin gem

gem 'unknown_admin'

Installation

Run bundle install from the command line:

bundle install

It is possible that v8 engine libraries need to be installed

brew install v8

Also run the unknown_admin generator to install the asset files for the admin-backend

rails generate unknown_admin:install

Add following line to one of your initializers, if you want to use strong parameters

ActiveRecord::Base.send(:include, ActiveModel::ForbiddenAttributesProtection)

You can generate an admin controller by using... model must exist for this to work!

rails g unknown_admin:controller ModelName

If you do want to add your routes manually, use this:

rails g unknown_admin:controller ModelName --skip-routes