27 May '13, 3am

File: FAQ

Frequently Asked Questions Can I use a variable from my controller in my Sass file? You still haven’t answered my question! Can I use a variable from my controller in my Sass file? No. Sass files aren’t views. They’re compiled once into static CSS files, then left along until they’re changed and need to be compiled again. Not only don’t you want to be running a full request cycle every time someone requests a stylesheet, but it’s not a great idea to put much logic in there anyway due to how browsers handle them. If you really need some sort of dynamic CSS, you can define your own Sass functions using Ruby that can access the database or other configuration. Be aware when doing this that Sass files are by default only compiled once and then served statically. If you really, really need to compile Sass on each request, first make sure you have adequate caching set up. Then y...

Full article: http://sass-lang.com/docs/yardoc/file.FAQ.html

Tweets

How fiat dies: FAQ for hyperinflation skeptics

coinbits.com 27 May '13, 6pm

Home Advertise Contact privacy policy Sitemap Submit Your Story How fiat dies: FAQ for hyperinflation skeptics Posted by C...

@keithpitt Check out HTTP_ variables. @mariovisic

rack.rubyforge.org 26 May '13, 10am

The server or the application can store their own data in the environment, too. The keys must contain at least one dot, an...