Rendering ruby block result in layout file13 Dec 2015
If you want to render some result of ruby block in your layout file, you may run into some problems. For example, your result may be repeated on page or you can get something worse.
let’s assume we have these methods:
I faced a similar problem (for example, in sidekiq) and I used own
capture method for layout files.
And after that we can update our
I hope it will be useful to you as well as for me at one time.