search for: color_pref

Displaying 1 result from an estimated 1 matches for "color_pref".

2011 Sep 13
1
Dynamic css files using scss
...lue of a scss variable dynamically using rails 3.1. For example: In a example.css.scss $main-color: red; body { background-color: $main-color; color: #333; font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; } And in the model user, I put the field color_prefered. And I want to change the value of a $main-color with the value of user.color_prefered. Is it possible? Tk. Rafa. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this g...