How to place stylesheet assets when building a gem for
rails 2.3.18
I have already tried creating vendor/stylesheets/custom_style.css
inside the gem I also tried public/stylesheets/custom_style.css
but there is no way to access it also how do we dynamically declare the stylesheet without touching application_layout.html.erb
只要将<%= stylesheet_link_tag "custom_style" %>
包括在以下任意位置:app / assets,lib / assets或vendor / assets,然后在浏览器控制台上检查以确保其包含在内即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.