Domanda

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

È stato utile?

Soluzione

Please try

<%= stylesheet_link_tag "/foldername/style2.css" %>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top