0

So I removed the /= requiretree line from the original application.css.scss but now I have to stylesheet_link_tag in each page for the specific .css since it's not requiring every single css file (as intended)

my question: how do I require in each specific controller view just the stylesheet rails associates with that controller? Is it some line I put in application.css.scss?

Again, I do NOT want every stylesheet loaded in every page which is why I removed requiretree

1 Answer 1

1

stylesheet_link_tag params[:controller] in layout and for production config assets pipeline to compile all files separatly

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.