You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `as: :some_symbol` is used with partials. It will take care of mapping the passed in object to a variable for the partial. If the value is a collection (either implicitly or explicitly by using the `collection:` option, then each value of the collection is passed to the partial as the variable `some_symbol`. If the value is a singular object, then the object is passed to the partial as the variable `some_symbol`.
200
+
The `as: :some_symbol` is used with partials. It will take care of mapping the passed in object to a variable for the
201
+
partial. If the value is a collection (either implicitly or explicitly by using the `collection:` option, then each
202
+
value of the collection is passed to the partial as the variable `some_symbol`. If the value is a singular object,
203
+
then the object is passed to the partial as the variable `some_symbol`.
204
204
205
205
Be sure not to confuse the `as:` option to mean nesting of the partial. For example:
206
206
@@ -253,6 +253,8 @@ json.bar "bar"
253
253
# => { "bar": "bar" }
254
254
```
255
255
256
+
## Caching
257
+
256
258
Fragment caching is supported, it uses `Rails.cache` and works like caching in
0 commit comments