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

Get Ruby by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.