Frage

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

War es hilfreich?

Lösung

Please try

<%= stylesheet_link_tag "/foldername/style2.css" %>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top