<%= stylesheet_link_tag "application", "bootstrap" %>
app/assets/stylesheets/application.css.scss # Contains 'require_self' and 'require_tree .' as usualvendor/assets/stylesheets/bootstrap.css
If you have other manifests or individual stylesheets and JavaScript files to include, you can add them to the precompile array:
--To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DoI6n1F06ZwJ.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hello,I'm having a bit of trouble with the asset pipeline and, I think, Capistrano.In my app layout I have:<%= stylesheet_link_tag "application", "bootstrap" %>And the relevant bits of the app dir structure are:app/assets/stylesheets/application.css.scss # Contains 'require_self' and 'require_tree .' as usual
config.assets.manifest = '/path/to/some/other/location'--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/hkyF_Ipz6lYJ.
config.serve_static_assets = true
in production.rb
Agreed. I must say this is extremely confusing. There seem to be no decent explanations in the docs or anywhere else. Why would config.serve_static_assets need changing to be true when we are told "Apache or nginx will already do this"? Should I actually be setting up Nginx to serve the files in the vendor/assets directory? I don't know how this would work when the helper appears to believe it's going to find bootstrap.css in public/assets/.