6e1c2f7fbf
Motivation / Background --- Strict Locals support was introduced in [#45727][] and announced as part of the [7.1 Release][]. There are several mentions across the Guides, but support is rarely mentioned in the API documentation. Detail ---- Mention the template short identifier (the pathname, in most cases) as part of the `ArgumentError` message. This commit adds two test cases to ensure support for splatting additional arguments, and for forbidding block and positional arguments. It also makes mention of strict locals in more places, and links to the guides. [#45727]: https://github.com/rails/rails/pull/45727 [7.1 Release]: https://edgeguides.rubyonrails.org/7_1_release_notes.html#allow-templates-to-set-strict-locals |
||
---|---|---|
.. | ||
action_view | ||
action_view.rb |