Skip to content

Commit

Permalink
Merge pull request #48467 from swanson/matt/rendering-docs-update
Browse files Browse the repository at this point in the history
Add notes about renderable option to guide
  • Loading branch information
guilleiguaran committed Jun 14, 2023
2 parents 6595150 + a9f1558 commit 01363bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guides/source/layouts_and_rendering.md
Expand Up @@ -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:
Expand Down

0 comments on commit 01363bd

Please sign in to comment.