Background

Create a helpers/controller/views to control e show ramdom backgrounds.

Dependencies:

paperclip acl9 jquery jquery colorpicker

Install

Run:

gem sources -a gemcutter.org gem install background

put in your environment.rb : config.gem “background” config.reload_plugins = true

Run:

//create the migration of background tables and copy /stylesheets/background_module.css

script/generate background config rake db:migrate

Use the gem

Insert in your layout inside <head> tag <%= random_background %> <%= css_background %>

Insert in your adm menu <%= menu_background %>

IMPORTANT

This gem is to be use with acl9 The menu is able just for user with :moderator role

The menu will use the layout “adm”

Copyright © 2010 Eduardo Cauli, released under the MIT license