Chapter 9: Advanced Topics
As we enter the final quarter of this book, we'll implement the last of the features that we listed back in Chapter 1, in preparation for Readit's much anticipated first release.
Along the way, we'll cover some of the more advanced topics that are involved in developing web applications with Ruby on Rails, such as writing your own helpers, using callbacks, and creating complex associations.
Promoting Popular Stories
To start, we'll make a change to the way our users view our application. We'll separate the display of our stories into two pages: one for stories with a score above a certain threshold, and one for stories with a score below that threshold. This will encourage readers to push stories to the front page ...
Get Rails: Novice to Ninja, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.