Pregunta

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

¿Fue útil?

Solución

Please try

<%= stylesheet_link_tag "/foldername/style2.css" %>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top