youtube image
From YouTube: Encapsulating Ruby on Rails views - Open Source Friday

Description

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

0:00 - Start
1:18 - What is a Rails ViewComponent
5:20 - What inspired this?
8:11 - Adoption at GitHub
10:53 - How does interact with design systems?
17:08 - Who else is using this?
23:48 - Contributions in the wild
26:42 - CSS in JS
35:00 - Rails open source conventions

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

Thanks!

Connect with us.
Facebook: http://fb.com/github
Twitter: http://twitter.com/github
LinkedIn: http://linkedin.com/company/github

About GitHub
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Millions of people use GitHub to build amazing things together. For more info, go to http://github.com