Learn

We built a Rails app that stores data using a single model.

What if we want to build an app with more than one kind of data, like Team and Athlete? Both Team and Athlete would have have different columns, and it would get messy to represent both in one model. Instead, we can represent them using two models.

Let’s see how this works by building a Rails app for traveling.

Instructions

We’ve taken the steps to create a Rails app called TravelApp along with the installation of the necessary gems to get us started.

Go ahead and take a look through the files and folders before we build it out!

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?