Summary
In this chapter, you’ve learned about the shortcomings of the classic Rails HTML layer, templates, and partials. You’ve learned how to make the partials interface explicit using template annotations (magic comments). You’ve familiarized yourself with linting tools for Rails templates and learned how to use them to reduce coupling between controllers and views.
You’ve learned about design systems and why they must be taken into account when designing a view layer of a Rails application. You’ve learned about the component-driven approach to building Rails views. You’ve familiarized yourself with the View Component library and learned how it can help to build a Rails view layer from self-contained components.
In the next chapter, we will go down to the Infrastructure layer and discuss the techniques to keep application configuration under control.