Sha256: 223d250013c76e3c3a77d94014c049f618b1e3bec3f0f6bd04cd9dd7bec1b5e1
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
= disguise A simple theme system for your Rails application. == Installation sudo gem install disguise == Setup Disguise comes with an admin controller to make changing your theme simple. By default it is not protected. In order to prevent unauthorized users from changing your theme you can override the admin controller like this: class Admin::ThemesController < Admin::Disguise::ThemesController before_filter :login_required layout('admin') end Also be sure to add a route to the new controller in routes.rb: # admin map.namespace :admin do |a| a.resource :theme end === Rake tasks Add disguise rake tasks to your rails project. Include the following line at the end of your Rakefile: require 'disguise/tasks' Then run the following to add the required files and database migration: rake disguise:setup rake db:migrate == Usage Generate a new theme for your Rails application using the built in theme generator: ./script/generate theme theme_name == Copyright Copyright (c) 2009 Justin Ball. See LICENSE for details.
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
jbasdf-disguise-0.1.1 | README.rdoc |
disguise-0.1.1 | README.rdoc |
disguise-0.1.2 | README.rdoc |