O'Reilly logo

Jump Start Rails by Andy Hawthorne

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 6Deploying to Heroku

In this, our final chapter, we'll add a couple more features to give us a more complete app, and then we'll deal with deploying to Heroku. We'll also see how to keep the Heroku database in sync with our own.

Using Partials to Add a Twitter Feed

Although probably not true of the app that we're building, it's possible that layout files can get quite busy. By now, you probably won't be surprised to learn that Rails offers a way to deal with the problem: partial templates.

Partial templates, or partials for short, allow you to break up the rendering process into manageable chunks. They are similar to include files in other frameworks. By using a partial, you can move the code for a particular layout component into a separate ...

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