Merge pull request #48467 from swanson/matt/rendering-docs-update
Add notes about renderable option to guide
This commit is contained in:
commit
01363bd7e7
@ -291,6 +291,12 @@ render MyRenderable.new
|
||||
|
||||
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`
|
||||
|
||||
Calls to the [`render`][controller.render] method generally accept six options:
|
||||
|
Loading…
Reference in New Issue
Block a user