Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3115

Show
Ignore:
Timestamp:
11/21/05 01:08:30 (3 years ago)
Author:
bitsweat
Message:

Improve expire_fragment documentation. Closes #2966.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r3111 r3115  
    11*SVN* 
     2 
     3* Improve expire_fragment documentation.  #2966 [court3nay@gmail.com] 
    24 
    35* Correct docs for automatic layout assignment. #2610. [Charles M. Gerungan] 
  • trunk/actionpack/lib/action_controller/caching.rb

    r3054 r3115  
    307307      # * String: This would normally take the form of a path like "pages/45/notes" 
    308308      # * Hash: Is treated as an implicit call to url_for, like { :controller => "pages", :action => "notes", :id => 45 } 
    309       # * Regexp: Will destroy all the matched fragments, example: %r{pages/\d*/notes} 
     309      # * Regexp: Will destroy all the matched fragments, example: %r{pages/\d*/notes} Ensure you don't use specify start and finish in your regex (^$) because the actual filename matched will look like ./cache/filename/path.cache 
     310      #    
    310311      def expire_fragment(name, options = nil) 
    311312        return unless perform_caching