Provides a global (brrr)
#content_for for Cells.
gem 'cells-capture', require: 'cells_capture'
Include the module in all your cell classes that require a global (brrr)
class BassistCell < Cell::Rails include Cell::Rails::Capture def show render end end
In your cell view you use
The captured content is now available globally (brrr) in your controller views or your layouts.
I want to note that I am not a big fan of breaking cells' encapsulation by emitting content into a global variable. However, as many people asked for it I provide this feature to improve the world's happiness factor.