With the recent release of version 6.1, Ruby on Rails now supports the rendering of objects that respond to render_in, a change we introduced to the framework. It may be small (the two pull requests were less than a dozen lines), but this change has enabled us to develop a framework for building encapsulated views called ViewComponent.

https://github.blog/2020-12-15-encapsulating-ruby-on-rails-views/
https://github.com/github/view_component

As always, feel free to leave us a comment below and don’t forget to subscribe: http://bit.ly/subgithub

Thanks!

#ruby-on-rails #developer

Encapsulating Ruby on Rails views - Open Source Friday
1.70 GEEK