提交 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
<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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册