Rails sass ActionView::Template::Error: Undefined variable:

TLDR; Rename application.css.sass to application.sass

I use .sass files, and I am very happy to have made the swap from scss to sass!, and views worked nicely with @import sassfile (where ”sassfile” is for example _layout.sass or _layout.css.sass   ….)

But tests started to fail the moment I added variables into the project. No, I don’t want to have to include _variables.sass into every single sass file where I use any variable. So after lot’s of trial and error and searching on the internets.. I read somewhere…

Rename application.css.sass to application.sass (!WHAAAAT?! 😀 ) nice!

and it works 🙂

 

*happy*