Scss other than application.css does not respond in rails

Asked 2 years ago, Updated 2 years ago, 120 views

I'm trying to create a web application with Rails. I've created a Home controller in addition to application.css, and I've created a home.css.scss, but typing a selector name like .class doesn't respond at all.(Character color does not change from white...)
The application.css is loaded properly.

Why is it that */=required_tree, etc., which I often see when I googled, is not responding?

ruby-on-rails css sass

2022-09-30 19:45

1 Answers

1 Change extension to application.css.scss
2 Erase all descriptions in application.css

In the application.css.scss file

@import "./home";

Try loading it like this


2022-09-30 19:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.