Permalink
Browse files

small README tweaks to caching section

  • Loading branch information...
1 parent 99d0c5a commit ac6dd3db3e33c867db2e405a0e44c01ae2fe5ea7 @databyte databyte committed with Mar 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -459,7 +459,7 @@ Note that RABL can be nested arbitrarily deep within child nodes to allow for th
Caching works by saving the entire template output to the Rails cache_store.
-Requires Rails, action_controller.perform_caching set to true in your environment, and `cache` to be set to a key (object that has cache_key defined, array or string).
+Requires Rails, `action_controller.perform_caching` set to true in your environment, and `cache` to be set to a key (object that has cache_key method, array or string).
```ruby
# app/views/users/show.json.rabl
@@ -483,6 +483,7 @@ The cache keyword is used from within the base template. It will ignore any cach
# app/views/users/index.json.rabl
collection @users
cache @users # key = rabl/users/[cache_key]/users/[cache_key]/...
+
extends "users/show"
```

0 comments on commit ac6dd3d

Please sign in to comment.