CHAPTER 5

From Ball of Mud to First Components

Photo: Roby1960/Shutterstock

This chapter is all about starting with component-based principles in existing applications. As such, it is complementary to Chapter 2 in which we discussed how to start with component-based applications from scratch. All the techniques described in this chapter are applicable to applications of arbitrary size. The only hard requirement for most of them is that the application uses Rails 3 or higher.

5.1 Small Steps

The good news regarding small steps to introduce components is that the previous chapters have introduced all the building blocks for this. The following ...

Get Component-Based Rails Applications: Large Domains Under Control now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.