Merge pull request #48467 from swanson/matt/rendering-docs-update

Add notes about renderable option to guide
This commit is contained in:
Guillermo Iguaran 2023-06-14 00:53:38 -07:00 committed by GitHub
commit 01363bd7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -291,6 +291,12 @@ render MyRenderable.new
This calls `render_in` on the provided object with the current view context. This calls `render_in` on the provided object with the current view context.
You can also provide the object by using the `:renderable` option to `render`:
```ruby
render renderable: MyRenderable.new
```
#### Options for `render` #### Options for `render`
Calls to the [`render`][controller.render] method generally accept six options: Calls to the [`render`][controller.render] method generally accept six options: