This project is archived and is in readonly mode.
Incomplete paths on exceptions in views
Reported by Claudio Poli | September 20th, 2008 @ 10:14 PM
When an exception is thrown, the view shows incomplete paths:
NoMethodError in Administration/groups#show Showing app/views//_list.erb where line ...
When it should be
NoMethodError in Administration/groups#show Showing app/views/administration/reports/_list.erb where line ...
In Rails 2.1.0 @base_path was
@base_path = template.base_path_for_exceptionwhich indicates a specific method to handle this, now seems gone:
@base_path = template.base_path.to_s
The problem here is that in method strip_base_path there's also a gsub that will strip this path.
Attached patch tries to fix this behaviour.
Comments and changes to this ticket
-
josh September 20th, 2008 @ 11:53 PM
- State changed from new to open
- Milestone cleared.
Gah, I thought I fixed it but its back again. I'll work on writing some tests this time so it doesn't come back :)
-
Repository September 21st, 2008 @ 04:58 AM
- State changed from open to resolved
(from [5f83e1844c83c19cf97c6415b943c6ec3cb4bb06]) Fixed missing template paths on exception [#1082 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
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
- 1082 Incomplete paths on exceptions in views (from [5f83e1844c83c19cf97c6415b943c6ec3cb4bb06]) Fixed m...