ViewComponents in the Real World
summary
Claims concrete wins: adoption of ViewComponent built on Rails 6.1, migration at GitHub that quadruples component usage, and unit tests that are ~100x faster than controller tests. Describes tools and infra: a custom ERB compiler turned Rails flag, static-analysis toolchain (parser gem, rubocop), Storybook previews, matrix CI for multi‑Ruby/Rails coverage. Gives numbers—hundreds to thousands of views, dozens of services, measurable perf savings (100 ms saved) and rollout practices.
AI-written summary · about
chapters (15)
- 0:00Start
- 4:02Architecture
- 4:37Controller - System
- 5:55Seeds vs. test setup
- 9:57Downsides
- 11:15Standards
- 15:22Complexity
- 19:48Storybook
- 21:04Refactoring
- 22:45Performance
- 23:02Organizational
- 28:45Empathy
- 29:52Test coverage
- 33:04Relevance
- 33:50Extractors
related talks
57mViewComponents in the Real World
38mRethinking the View Layer with Components
37mEncapsulating Views
45mView Components in Rails
31mComponent Driven UI with ViewComponent gem
39mComponent Driven UI with ViewComponent
01h 28mGet started with Component-based Rails applications!
33mRefactoring Towards Component-based Rails Architectures
