Background

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

Dependencies:

paperclip acl9

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 script/generate background migration rake db:migrate

Use the gem

Insert in your layout inside <head> tag <%= random_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