0.0
No commit activity in last 3 years
No release in over 3 years
A rails engine for adding admin functionality.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

AdminEngine

Usage

Install the database migration to create an admins table.

bundle exec rake admin_engine:install:migrations

Run the database migration.

bundle exec rake db:migrate

Use a before_filter for actions that require the logged in account to be admin.

before_filter :authorize_admin

Visit http://localhost:3000/admin

If the logged in account is not an admin, you will see the following:

Unknown action

AbstractController::ActionNotFound


Make the logged in account an admin by adding an entry in the admins table.

Now you will see the following:

Admin

Customize this page by implementing views/admin/home.


## Development ### Prepare the "dummy" app pushd spec/dummy rake user_authentication:install:migrations rake admin_engine:install:migrations rake db:drop rake db:create rake db:migrate rake db:test:prepare popd

Run specs

rspec