This project is archived and is in readonly mode.

#1082 ✓resolved
Claudio Poli

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_exception
which 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

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

Referenced by

Pages