1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update caching_with_rails.md [ci skip]

Highlight methods
This commit is contained in:
Harshad Sabne 2014-08-31 17:22:01 +05:30
parent f0249bc578
commit 4b9d22e959

View file

@ -363,7 +363,7 @@ class ProductsController < ApplicationController
end
```
If you don't have any special response processing and are using the default rendering mechanism (i.e. you're not using respond_to or calling render yourself) then you've got an easy helper in fresh_when:
If you don't have any special response processing and are using the default rendering mechanism (i.e. you're not using `respond_to` or calling render yourself) then you've got an easy helper in `fresh_when`:
```ruby
class ProductsController < ApplicationController