aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/caching_with_rails.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-04-27 10:18:37 +0200
committerXavier Noria <fxn@hashref.com>2009-04-27 10:18:37 +0200
commite5bebbbeffcb8b7912b67a6ebd893342d450a130 (patch)
treec6071f24fe925a4056f3d74abb8b4eea0d98431c /railties/guides/source/caching_with_rails.textile
parent4d1e21e8cbfa1bca4387714b684fdb4daddb673a (diff)
downloadrails-e5bebbbeffcb8b7912b67a6ebd893342d450a130.tar.gz
rails-e5bebbbeffcb8b7912b67a6ebd893342d450a130.tar.bz2
rails-e5bebbbeffcb8b7912b67a6ebd893342d450a130.zip
bring index actions back in caching guide, REST conventions are encouraged and surrounding text assumes index
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