Is it possible to access Rails.env inside Sass files?
I'm trying to do it like this:
$url: <%= Rails.env.production? ? '//foo.com' : '//localhost:3000' %>
@font-face {
src: url("#{$url}/font/fontawesome-webfont.eot");
}
But this gives:
Invalid CSS after "$url:": expected expression (e.g. 1px, bold), was "<%= Rails.env.p..."
I've tried with different file extensions, like css.scss.erb
etc, but no joy.