Rails - is there a way to get Rails to render a Style .css file inside of the view? -
instead of page making request css, have rails view render css file in page, it's 1 request.
is possible?
altough typical way include css using stylesheet_link_tag
(in particular gets cached client), possible put directly in <head>
in rails 3.1:
<head> .... <style type="text/css"> <%= youappname::application.assets["your_stylesheet.css"].to_s.html_safe %> </style> </head>
i adapted this post.
Comments
Post a Comment