سؤال

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

هل كانت مفيدة؟

المحلول

Please try

<%= stylesheet_link_tag "/foldername/style2.css" %>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top