rails/actionview/test
Sean Doyle 32faee0e52 Action View: docs use application/ instead of shared/
Change mentions of `app/views/shared` in the guides to be
`app/views/application` instead. View partials rely on the same
[Template Inheritance][] as their template counterparts, so the guides
should encourage end-users to benefit from that inheritance.

> This makes `app/views/application/` a great place for your shared
> partials, which can then be rendered in your ERB as such:
>

```html+erb
<%# app/views/admin/products/index.html.erb %>
<%= render @products || "empty_list" %>

<%# app/views/application/_empty_list.html.erb %>
There are no items in this list <em>yet</em>.
```

To enforce that template resolution, this commit also replaces
references to `shared/` with `application/` in the Rails test suite.

[Template Inheritance]: https://guides.rubyonrails.org/layouts_and_rendering.html#template-inheritance
2023-09-15 12:06:22 -04:00
..
actionpack Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
activerecord Fix Action View collection caching to store fragments as bare strings 2023-07-04 16:37:22 +02:00
fixtures Add "Testing View Partials" section to the Testing Guides 2023-09-13 09:44:44 -04:00
lib Fix form_for id generation for new CPK models 2023-08-28 15:56:25 -05:00
template Action View: docs use application/ instead of shared/ 2023-09-15 12:06:22 -04:00
ujs Fix rails-ujs tests not being linted 2023-03-17 00:56:59 -04:00
abstract_unit.rb Add ActionView.deprecator 2022-10-30 16:01:39 -05:00
active_record_unit.rb Introducs TestFixtures#fixture_paths. 2023-03-14 19:02:56 -04:00
buffers_test.rb Add OutputBuffer#raw and #capture to reduce the need to swap the buffer 2022-08-03 12:56:34 +02:00