Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Rails plugin to provide some consistent functionality and styling for administrative areas of a website.
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
install
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

AdminFramework
==============

Yet another Rails plugin to provide some consistency in building "admin areas".
Read on for requirements, installation instructions, and how to remove.


Requirements
============

The following plugins are required so go get them and install them:

http://github.com/phallstrom/link_out_to
http://github.com/phallstrom/clear_helper
http://github.com/phallstrom/form_helper_css
http://agilewebdevelopment.com/plugins/will_paginate

Installation Steps
==================

If your installation didn't already run the install.rb, do that now:

  ruby vendor/plugins/admin_framework/install.rb

Then run the migration:

  rake db:migrate:up VERSION=197405240832_create_admin_users

This will create the table and two users:

- philip (you'll probably want to delete this)
- admin (password 'admin'. you'll want to change this)

Then install the following routes:

  map.with_options :controller => 'admin/dashboard' do |r|
    r.admin '/admin'
    r.admin_login '/admin/login', :action => 'login'
    r.admin_logout '/admin/logout', :action => 'logout'
    r.admin_change_password 'admin/change-password', :action => 'change_password'
  end

  map.namespace(:admin) do |admin|
    admin.resources :admin_users
    # add your other admin routes here
  end
  

Uninstall Steps
===============

Remove the admin_users table by downing the migration:

  rake db:migrate:down VERSION=197405240832_create_admin_users

Remove all the files:

  ruby vendor/plugins/admin_framework/uninstall.rb

There may still be some cleanup if you've made local modifications.

Rake Tasks
==========

There is one rake task that you can run to copy into place new images,
javascripts, and stylesheets.

  rake admin_framework:update


Copyright (c) 2008 Philip Hallstrom <philip@pjkh.com>, released under the MIT license
Something went wrong with that request. Please try again.