Skip to content

Commit 0dc84e2

Browse files
authored
Merge pull request rails#51314 from MatheusRich/patch-1
Fix error message for unknown template local variable
2 parents 71a74ad + 7fe5841 commit 0dc84e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/action_view_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ Rendering the partial with additional local variable arguments will raise an exc
483483

484484
```ruby
485485
render "messages/message", unknown_local: "will raise"
486-
# => ActionView::Template::Error: missing local: :unknown_local for app/views/messages/_message.html.erb
486+
# => ActionView::Template::Error: unknown local: :unknown_local for app/views/messages/_message.html.erb
487487
```
488488

489489
Optional local variable arguments can be splatted:

0 commit comments

Comments
 (0)