As far as I know, this is not what Asset Pipeline was designed for.
Think about it, you have the rake assets:precompile to convert all your .scss.erb files to a static .css file.
So, how could you access variables like current_user from this .scss.erb file?
In my opinion, it is not possible to get control variables in .scss.erb or .coffee.erb .
Minqi pan
source share