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