Section Introduction
This section of the course explains how data flow works in Rails, focusing on how the MVC structure allows for an organized process of data management.
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

This section of the course explains how data flow works in Rails, focusing on how the MVC structure allows for an organized process of data management.

So far in this course, we've built quite a bit of functionality for such a short period of time. In this section, we're going to cover the topic of data flow.

In many courses, people skim over the way data flows in an application. I want to slow down the pace a little bit and fully explain what Rails does from a data flow perspective. I'll break it down into small sections, so it's easy to understand. I believe If you can envision how data flows in a Rails system, it's going to make everything else a lot easier to comprehend.

With that in mind, we're going to build out the portfolio feature entirely from the ground up. We're going to cover the concept of custom routes, and identify how we can generate our own routes that have their own custom actions that are a little bit different from what we did when we built our blog system. We're also going to build out the entire set of CRUD functionality, which we created last time with the Scaffold Generator, only this time we will build it from scratch.

The goal is for you to understand not just what is occurring, but why it is occurring, especially how the data flows from the route to the controller to the model and to every single component involved in the application.

Let's dive into the demos now.