Rails cache_action 样式都没了

sforce100 · 2013年01月29日 · 最后由 ywencn 回复于 2013年01月29日 · 2059 次阅读

class BookController < ApplicationController caches_action :show, :layout => false cache_sweeper :book_sweeper, :only => [:create, :update, :destroy] def show ..... end end

development 下跑.....样式都不出来了 cache 的内容不是存到文件系统的 public 目录下的吗?我发现 caches_action 的内容都在 tmp 目录下了。

caches_page 才是在 public

需要 登录 后方可回复, 如果你还没有账号请 注册新账号