1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
John Hawthorn f84773a587 Deprecate rendering templates with . in the name
Allowing templates with "." introduces some ambiguity. Is index.html.erb
a template named "index" with format "html", or is it a template named
"index.html" without a format? We know it's probably the former, but if
we asked ActionView to render "index.html" we would currently get some
combination of the two: a Template with index.html as the name and
virtual path, but with html as the format.

This deprecates having "." anywhere in the template's name, we should
reserve this character for specifying formats. I think in 99% of cases
this will be people specifying `index.html` instead of simply `index`.

This was actually once deprecated in the 3.x series (removed in
6c57177f2c) but I don't think we can rely
on nobody having introduced this in the past 8 years.
2020-03-31 21:55:19 -07:00
..
actionpack .annotate_template_file_names annotates HTML output with template file names 2020-03-30 14:50:01 -06:00
activerecord pull preloading behavior in to the collection renderer 2020-02-28 09:23:22 -08:00
fixtures Add a regression test that ActionText caught 2020-02-27 16:47:22 -08:00
lib Document view components support (#38656) 2020-03-13 23:52:49 +01:00
template Deprecate rendering templates with . in the name 2020-03-31 21:55:19 -07:00
ujs update from PR #36222 2020-02-12 13:31:43 -05:00
abstract_unit.rb Merge pull request #25214 from maclover7/jm-av-tests 2019-12-18 12:23:11 -03:00
active_record_unit.rb Run actionview tests in parallel 2019-06-05 18:40:08 -07:00