Question

I would like to use one of my stylesheets from the public folder (several directories each with their own css file) for one of my controllers.

Having trouble bringing in the static css file.

I've tried the following code -

<%= stylesheet_link_tag "/public/foldername/style2.css" %>

But it's not working

Was it helpful?

Solution

Please try

<%= stylesheet_link_tag "/foldername/style2.css" %>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top