0

I am creating an application where I am having many views but they all have to use a single css...

I placed my css code in assests\stylesheets\application.css

and in my view head part I am adding:

<%= stylesheet_link_tag 'application.css' %>

but stil it is not working

1 Answer 1

3

Try using:

<%= stylesheet_link_tag 'application' %>

Note the lack of .css

See this answer https://stackoverflow.com/a/10492888/950890

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.