aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/caching_with_rails.textile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/source/caching_with_rails.textile')
-rw-r--r--railties/guides/source/caching_with_rails.textile8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile
index 3df65018e8..3b0c43d6ee 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -44,9 +44,9 @@ the products
<ruby>
class ProductsController < ActionController
- caches_page :list
+ caches_page :index
- def list
+ def index
@products = Products.all
end
@@ -76,9 +76,9 @@ example controller like this:
<ruby>
class ProductsController < ActionController
- caches_page :list
+ caches_page :index
- def list
+ def index
@products = Products.all
end