提交 e5bebbbe 编写于 作者: X Xavier Noria

bring index actions back in caching guide, REST conventions are encouraged and...

bring index actions back in caching guide, REST conventions are encouraged and surrounding text assumes index
上级 4d1e21e8
...@@ -44,9 +44,9 @@ the products ...@@ -44,9 +44,9 @@ the products
<ruby> <ruby>
class ProductsController < ActionController class ProductsController < ActionController
caches_page :list caches_page :index
def list def index
@products = Products.all @products = Products.all
end end
...@@ -76,9 +76,9 @@ example controller like this: ...@@ -76,9 +76,9 @@ example controller like this:
<ruby> <ruby>
class ProductsController < ActionController class ProductsController < ActionController
caches_page :list caches_page :index
def list def index
@products = Products.all @products = Products.all
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册