32faee0e52
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 |
||
---|---|---|
.. | ||
actionpack | ||
activerecord | ||
fixtures | ||
lib | ||
template | ||
ujs | ||
abstract_unit.rb | ||
active_record_unit.rb | ||
buffers_test.rb |