diff options
author | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-08-12 15:03:55 +0800 |
---|---|---|
committer | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-08-12 15:03:55 +0800 |
commit | 52f88f09bca26715089c59e761fe15ee17cd3d8c (patch) | |
tree | 4d0e7586b5105ad0c8720225196c1720521a0aac /actionpack | |
parent | d2553c3409843986be2c00394687828195b913dc (diff) | |
download | rails-52f88f09bca26715089c59e761fe15ee17cd3d8c.tar.gz rails-52f88f09bca26715089c59e761fe15ee17cd3d8c.tar.bz2 rails-52f88f09bca26715089c59e761fe15ee17cd3d8c.zip |
Fix reference to incorrect block variable in :cache_path example for caches_action.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/caching/actions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb index f3535f8330..b27ec486c0 100644 --- a/actionpack/lib/action_controller/caching/actions.rb +++ b/actionpack/lib/action_controller/caching/actions.rb @@ -38,8 +38,8 @@ module ActionController #:nodoc: # caches_action :show, :cache_path => { :project => 1 }, :expires_in => 1.hour # caches_action :feed, :cache_path => Proc.new { |controller| # controller.params[:user_id] ? - # controller.send(:user_list_url, c.params[:user_id], c.params[:id]) : - # controller.send(:list_url, c.params[:id]) } + # controller.send(:user_list_url, controller.params[:user_id], controller.params[:id]) : + # controller.send(:list_url, controller.params[:id]) } # end # # If you pass :layout => false, it will only cache your action content. It is useful when your layout has dynamic information. |