Roll Admin Model plugin
Plugin details
Documentation
ruby script/plugin install git://github.com/neerajdotname/roll_admin_model.git
HOW TO USE IT
======================
After installing the plugin you need to put following lines of code in config/routes.rb at the very top
RollAdminModel::Routing.connect_with map
Given below is an example of how to add to routing.rb
ActionController::Routing::Routes.draw do |map| RollAdminModel::Routing.connect_with map map.resources :comments map.resources :articles map.resources :users map.root :controller => "admin_model" map.connect ':controller/:action/:id' end
RUNNING THIS APP AND SETING UP ENVIRONMENT
==========================================
sudo gem install faker sudo gem install will_paginate rake db:create rake db:migrate rake db:generate_fake_data ruby script/server http://localhost:3000
SECURING IT
=============================
This plugin will allow access to browse the models without any authorization check in development environment.
However in other environment a security check is enforced. In order to secure this plugin please ensure that
ROLL_ADMIN_MODEL_AUTH is a proc which checks for authorization.
Given below is one way to ensure authentication.
ROLL_ADMIN_MODEL_AUTH = Proc.new { |controller| controller.send("admin_logged_in?") }
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, about 1 month ago

