This project is archived and is in readonly mode.
.orig files override standard erb files with rails 2.3
-
stuzart
Infact the .orig extension is irrelevant. Just tried renaming to main.html.erb.fred and the same problem occurs.
-
CancelProfileIsBroken
- Tag set to bugmash
-
Blue Box Jesse
BugMash: not reproducible
Created a new rails application. Created a "test" controller with one render action. Created two layouts:
main.html.erb
main.html.erb.origCreated two views:
welcome.html.erb
welcome.html.erb.origTold rails to use the "main" layout for the test controller.
Rails renders the main.html.erb and welcome.html.erb files correctly.
Renamed the .orig files to be .fred and rails still grabs the proper files.
Removed my two .html.erb files leave just the .fred files, and Rails complains about not being able to find the views. Changed .fred to .orig and still no dice.
I don't believe this is a bug.
-
John Pignata
-1 - can't reproduce
-
rbxbx
-1 cannot reproduce following similar steps to blue box jesse.
-
Robert Rouse
-1 cannot reproduce as well
-
sr.iniv.t
-1 not reproducible.
Had an action 'home' and a corresponding view 'home.html.erb'. Copied 'home.html.erb' to 'home.html.erb.orig' and modified the file. Invoking the 'home' action correctly renders 'home.html.erb'. Renamed home.html.erb to home.html.krb, now rendering fails. Renamed home.html.erb.orig to home.html.erb, not the contents of this file (former home.html.erb.orig) get rendered.
-
CancelProfileIsBroken
- State changed from new to invalid
- Tag cleared.