This project is archived and is in readonly mode.
Rendering "~" caches
Reported by Carlos Júnior (xjunior) | February 20th, 2009 @ 03:15 PM
Many editors (mainly on linux) generates caches of the "original_file_name~" format. Rails used to ignore these, but it's now rendering them (and with higher priority than the original one).
Comments and changes to this ticket
-
thedarkone February 21st, 2009 @ 12:19 AM
This is happening because 2.3 is a lot less strict at parsing template filenames while at the same time much more liberal at what it allows a template to claim that is should match to...
So what happens is that we have a
test.html.erb~
template that has no rendering handler, but still claims to be renderable fortest.html
requests through itsaccessible_paths
.0001-Template-without-a-known-template-handler-should-onl.patch
will only render templates without a known template handler only when an exact filename is passed i.e.abc/test.html.erb~
orabc/test.js
. -
Carlos Júnior (xjunior) February 23rd, 2009 @ 02:32 PM
I fully understand it, but I think that files ending with "~" should be ignored anyway, since it's always a cache.
-
josh February 23rd, 2009 @ 08:06 PM
- Assigned user set to josh
- Milestone cleared.
-
Repository February 24th, 2009 @ 04:42 PM
- State changed from new to resolved
(from [85df4841ddb3db3970fa9e798de698cf6f16752a]) Template without a known template handler should only be reachable through its exact path. [#2027 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
thedarkone February 24th, 2009 @ 05:43 PM
I don't know what went wrong, but the the fixture templates with
~
weren't committed (even though they are in the patch). CI server is going to be pissed :).
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 2027 Rendering "~" caches (from [85df4841ddb3db3970fa9e798de698cf6f16752a]) Templat...
- 1933 Rails 2.3rc1 loads VIM temp files instead of intended files Patched on #2027