Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix reference to incorrect block variable in :cache_path example for …

…caches_action.
  • Loading branch information...
commit 52f88f09bca26715089c59e761fe15ee17cd3d8c 1 parent d2553c3
@chuyeow chuyeow authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/caching/actions.rb
View
4 actionpack/lib/action_controller/caching/actions.rb
@@ -38,8 +38,8 @@ module Caching
# 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.
Please sign in to comment.
Something went wrong with that request. Please try again.