Rails Design Pattern

A high-level overview of the Model-View-Controller architecture.

We'll cover the following


In our introduction to Rails, we said that Rails uses the Model-View-Controller (MVC) architecture. But what is that exactly, and why do we need it?

MVC is a design pattern that separates the program logic into three interconnected elements. Essentially, it enforces a separation between the data in the application (such as user information) and the code used to display it. Rails uses the thin clientthin_client approach to the MVC architecture, which places almost the entire model, view, and controller logic on the server-side.

Get hands-on with 1200+ tech skills courses.