Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ramdom Backgrouns
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
generators
lib
pkg
CHANGELOG
MIT-LICENSE
Manifest
README
Rakefile
background-0.1.0.gem
background.gemspec
init.rb
install.rb
uninstall.rb

README

Background
==========

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

Dependencies:
=============
paperclip
acl9


Install
=======
Run:

gem sources -a http://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 (c) 2010 Eduardo Cauli, released under the MIT license
Something went wrong with that request. Please try again.