Chapter 5. Filling in the Layout

In the process of taking a brief tour of Ruby in Chapter 4, we added some basic cascading style sheets to our site layout (Section 4.1.2). In this chapter, we’ll add some custom styles of our own, as we fill in the layout with links to the pages (such as Home and About) that we’ve created so far. Along the way, we’ll learn about partials, Rails routes, and integration tests. We’ll end by taking a first important step toward letting users sign up to our site.

5.1 Adding Some Structure

Rails Tutorial is a book on web development, not web design, but it would be depressing to work on an application that looks like complete crap, so in this section we’ll add some structure to the layout and give it some minimal ...

Get Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example now with the O’Reilly learning platform.

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