Cells v3.11.2 Release Notes
-
ViewModel#call
now accepts a block and yieldsself
(the cell instance) to it. This is handy to use withcontent_for
.ruby = cell(:song, Song.last).call(:show) do |cell| content_for :footer, cell.footer
ViewModel#call
now accepts a block and yields self
(the cell instance) to it. This is handy to use with content_for
.
ruby
= cell(:song, Song.last).call(:show) do |cell|
content_for :footer, cell.footer