Ruby on Rails
Monday, February 26, 2018
On Tue, Feb 27, 2018 at 1:32 PM, fugee ohu <fugee279@gmail.com> wrote:
I mounted an engine and it has it's own assets pipeline How do I override or add to it? It's in a subdirectory under the gem root path /app/assets/stylesheets/blogit There's no application.css file in the folder, only other css files I created an application.html.erb file for the blog portion of the site so the file i need to add to the assets pipleline is application.css
CSS is loaded by order. A more recently loaded stylesheet will override a stylesheet loaded earlier.
= stylesheet_link_tag 'application'
= stylesheet_link_tag 'custom'
so in the code above, anything inside custom.css will take precedence over those in application
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com .
To post to this group, send email to rubyonrails-talk@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .a5aea9c5-f84c-469e-a6cc- cd287bce4e8d%40googlegroups. com
For more options, visit https://groups.google.com/d/optout .
-------------------------------------------------------------
visit my blog at http://jimlabs.herokuapp.com
visit my blog at http://jimlabs.herokuapp.com
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ8y7VdcShJ9jkhNyyvTKd8WOyf0AbWBY8C%3DfsLiGAHt2sKjNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment