views episodes
#118
Jul 14, 2008
13 comments
Liquid
Liquid is a safe way to provide a powerful template language to the site's users. See how in this episode.
Site Wide Announcements
Sometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode.
Refactoring Out Helper Object
If you have complex view logic, this can easily lead to helper methods which call each other. See how to refactor this out into another object in this episode.
5 View Tips
Here's five quick tips to use in views. Be sure to catch the end of the episode where I reveal an exciting contest!
Complex Partials
How do you handle partials which have differences depending on the action which is rendering them? Here's three suggestions for this problem.
Fragment Caching
Sometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode.
Dynamic Select Menus
See how to dynamically change a select menu based on another select menu using Javascript. In this episode everything is kept client side which leads to a more responsive user interface.
Generating RSS Feeds
See how to easily generate and link to an RSS feed using new features in Rails 2.0. Watch this episode or details.
Simplify Views with Rails 2.0
Rails 2.0 is almost here. One of the many features in this release is the smarter helper methods which can make your views much cleaner. Learn all about it in this Episode.
Destroy Without JavaScript
If the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue.




