RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: caching xFree Episodes x
Fragment Caching
Episode #90Jan 27, 200842 comments

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. (6 minutes)
MiniProfiler
Episode #368Jul 24, 2012107 comments

MiniProfiler

MiniProfiler allows you to see the speed of a request conveniently on the page. It also shows the SQL queries performed and allows you to profile a specific block of code. (9 minutes)
Offline Apps Part 1
Episode #247Jan 03, 201136 comments

Offline Apps Part 1

Learn how to make a site usable offline through an HTML 5 cache manifest. This first part of the series covers rack-offline and problems you may run into. (10 minutes)
Counter Cache Column
Episode #23Apr 25, 200769 comments

Counter Cache Column

If you need to display the record count for a has_many association, you can improve performance by caching that number in a column. (7 minutes)
Upgrading to Rails 3.1
Episode #282Sep 05, 201153 comments

Upgrading to Rails 3.1

It is incredibly easy to upgrade to Rails 3.1, but if you want to take advantage of the asset pipeline you will need to put in some extra effort. Have no fear because I walk you through each of the necessary steps in this episode. (8 minutes)
Offline Apps Part 2
Episode #248Jan 10, 201137 comments

Offline Apps Part 2

Learn how to make a site usable offline with HTML 5 localStorage. This last part of the series covers jquery-tmpl and jquery-offline. (14 minutes)
ERB Blocks in Rails 3
Episode #208Apr 05, 201060 comments

ERB Blocks in Rails 3

Blocks in ERB templates are handled differently in Rails 3.0 Beta 2. Learn all about it in this episode. (9 minutes)
Formtastic Part 1
Episode #184Oct 19, 200978 comments

Formtastic Part 1

Formtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options. (10 minutes)
Caching with Instance Variables
Episode #1Mar 04, 200769 comments

Caching with Instance Variables

Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable! (2 minutes)
Memoization
Episode #137Nov 24, 200848 comments

Memoization

Rails 2.2 is out! In this episode I show how to upgrade Rails and then demonstrate one of the new additions: Memoization. (5 minutes)