Application.css
*= require palette *= require global *= require_tree . *= require_self vendor / assets / stylesheet / pallete.scss
.grey { background-color: #9e9e9e; } global.scss
html { body { header { @extend .grey; } } } Gives an error message:
"html body header" failed to @extend ".grey".
The selector ".grey" was not found.
Use "@extend .grey! Optional" if it should be able to fail.
If the .grey class is .grey in the global.scss file and the global.scss in the same file, then everything works fine, from any other files it is not extendend.
I tried to move the palette file from vendor to app , change the order in application.css , remove *= require_tree . , updated gems, overloaded the server, the computer - the result is the same.
rake assets:clean rake assets:precompile Also did not change anything.
In an empty application from scratch the same problem.
Versions of ruby and gems:
- ruby 2.2.0p0
- Rails 4.2.5
- sass (3.4.21)
- sass-rails (5.0.4)