aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorFranco Catena <francocatena@gmail.com>2012-08-10 21:51:07 -0300
committerFranco Catena <francocatena@gmail.com>2012-08-10 21:51:07 -0300
commit4c711f133506a0536fb244f1bf569717ad9dd796 (patch)
treefe446799607e3062f7b6644a84a3be8ad67df4ef /guides
parente4633519696f539bffacf6985caa3969ad717c85 (diff)
downloadrails-4c711f133506a0536fb244f1bf569717ad9dd796.tar.gz
rails-4c711f133506a0536fb244f1bf569717ad9dd796.tar.bz2
rails-4c711f133506a0536fb244f1bf569717ad9dd796.zip
Fix caching guide (plural model name) [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/caching_with_rails.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/caching_with_rails.textile b/guides/source/caching_with_rails.textile
index 3ee36ae971..815b2ef9c2 100644
--- a/guides/source/caching_with_rails.textile
+++ b/guides/source/caching_with_rails.textile
@@ -33,7 +33,7 @@ class ProductsController < ActionController
caches_page :index
def index
- @products = Products.all
+ @products = Product.all
end
end
</ruby>
@@ -52,7 +52,7 @@ class ProductsController < ActionController
caches_page :index
def index
- @products = Products.all
+ @products = Product.all
end
def create