O'Reilly logo

Ruby by Example by Kevin C. Baird

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. A Simple Rails Project

image with no caption

In the previous chapter, you installed Rails and became acquainted with the basics of the internal structure of a Rails application. In this chapter, we’ll be creating a Rails app that is a bit more complex—it retrieves multiple instances of a given data type from a database and iterates over those instances for presentation. We’ll also look into some more sophisticated ways of organizing code within Rails.

Creating the Application

For our purposes, any simple application will suffice. I’ve chosen to create a photo album that will display a few photos from my wedding. It will be able to display all of the photos ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required