diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-08 01:11:29 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-08 02:25:19 +0530 |
commit | 0b09f84c911bcdb0a5bb950657cc279cb614e10b (patch) | |
tree | 76c2cc3d7bb8be1210ee1e422d0d67b5cdfed688 /railties | |
parent | c00da252b8b687b44a6d53d35218277c99b39da8 (diff) | |
download | rails-0b09f84c911bcdb0a5bb950657cc279cb614e10b.tar.gz rails-0b09f84c911bcdb0a5bb950657cc279cb614e10b.tar.bz2 rails-0b09f84c911bcdb0a5bb950657cc279cb614e10b.zip |
fix indents and a code error in caching guide
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/caching_with_rails.textile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile index cebf49573d..f058dce42b 100644 --- a/railties/guides/source/caching_with_rails.textile +++ b/railties/guides/source/caching_with_rails.textile @@ -112,7 +112,7 @@ As an example, if you wanted to show all the orders placed on your website in re <ruby> <% Order.find_recent.each do |o| %> - <%= o.buyer.name %> bought <% o.product.name %> + <%= o.buyer.name %> bought <%= o.product.name %> <% end %> <% cache do %> @@ -162,17 +162,17 @@ class ProductSweeper < ActionController::Caching::Sweeper # If our sweeper detects that a Product was created call this def after_create(product) - expire_cache_for(product) + expire_cache_for(product) end # If our sweeper detects that a Product was updated call this def after_update(product) - expire_cache_for(product) + expire_cache_for(product) end # If our sweeper detects that a Product was deleted call this def after_destroy(product) - expire_cache_for(product) + expire_cache_for(product) end private |