small medium large xlarge

Generic-user-small
05 Oct 2008, 12:06
James West (104 posts)

The book talks about setting colours in a style sheet (depot.css) and I was wondering if it would be possible to have these colours set from a database table which would presumably need ruby code embedded into the depot.css to call a method maybe in the application_helper.rb that reads colours from a database if it has not already read them? Any ideas would be gratefully received

Generic-user-small
09 Oct 2008, 22:25
Jason Franklin-Stokes (4 posts)

div.app_base { width: 820px; background-color: <%= model.color =>; margin-left: auto; margin-right: auto; }

Generic-user-small
12 Oct 2008, 06:48
James West (104 posts)

Thank you :-)

You must be logged in to comment