Browse files

Fix caching guide (plural model name) [ci skip]

  • Loading branch information...
1 parent e463351 commit 4c711f133506a0536fb244f1bf569717ad9dd796 @francocatena francocatena committed Aug 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/caching_with_rails.textile
View
4 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

0 comments on commit 4c711f1

Please sign in to comment.