Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rendering "~" caches

#2027

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).

Reported by Carlos Júnior (xjunior) · February 20th, 2009 @ 03:15 PM

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. thedarkone
    thedarkone

    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 for test.html requests through its accessible_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~ or abc/test.js.

    February 21st, 2009 @ 12:19 AM

  2. Carlos Júnior (xjunior)
    Carlos Júnior (xjunior)

    I fully understand it, but I think that files ending with "~" should be ignored anyway, since it's always a cache.

    February 23rd, 2009 @ 02:32 PM

  3. josh
    josh
    • Assigned user set to josh
    • Milestone cleared.

    February 23rd, 2009 @ 08:06 PM

  4. Repository
    Repository
    • 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...

    February 24th, 2009 @ 04:42 PM

  5. thedarkone
    thedarkone

    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 :).

    February 24th, 2009 @ 05:43 PM