Is it possible to pass an array to content_for (ruby on rails)
Suppose I have a main layout, a nested layout, and a view. Each has its own CSS file associated with it.
Is it possible to pass the two CSS files for the nested layout and the view to the main layout so that it can include all three files into a single call t开发者_StackOverflow社区o Jammit's include_stylesheets (via content_for)?
The purpose is to leverage Jammit's concatenation functionality in prod.
I could use eval, but I'd like to avoid using that function.
Thanks
精彩评论