This project is archived and is in readonly mode.
render :file doesn't work for absolute path on windows
-
thedarkone
- Assigned user set to josh
I actually think we can drop all this special case view path faking.
-
Bivi
Thanks for the patch, but ...
when I've tried it, I lost the backtrace page when any error occured in my application (a bad action name for example).
It seems that the problem lies around the "memoize :filename" line because in the log file there is an error like
ERROR: compiling _run_erb_C5847ruby... RAISED can't modify frozen object ... Backtrace: C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/memoizable.rb:71:in `filename' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:77:in `compile!' ...So I commented the memoize :filename and now it seems to work fine.
-
thedarkone
Thanks for the feedback, the error you get doesn't make sense though...
Also the patch I posted was not against v2.3.2.1 and so it wasn't applying cleanly.
-
Repository
- State changed from new to resolved
(from [d2e6a0fbc30d3fd03e7945306d18ed8ced8b20cf]) Simplify handling of absolute path templates. [#2276 render :file doesn't work for absolute path on windows state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
Repository
(from [e3b166aab37ddc2fbab030b146eb61713b91bf55]) Simplify handling of absolute path templates. [#2276 render :file doesn't work for absolute path on windows state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
