...

/

Rails Design Pattern

Rails Design Pattern

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

We'll cover the following...

Model-View-Controller

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 ...