Forum: Ruby on Rails Exception backtraces for view plugins

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5f361e572e14b68654093429d55f80b3?d=identicon&s=25 Rebecca Blyth (Guest)
on 2007-04-12 15:18
(Received via mailing list)
I'm using a plugin that adds a new templating system to my app. The
backtrace for errors in the standard rhtml templates includes the
template's file name and the line number where the error occurred.
Errors in templates using the new templating system don't produce

.rhtml template errors look like this:

and my plugin template errors look like this:
    (erb):48:in `render'

I've found that the stated line number is correct - once you've worked
out exactly which template you need to look at. It's OK if the action
only uses one template, but if you're using partials things start to
get a bit tricky.

It'd be useful to be able to get the file name of the template causing
the problem into the backtrace. Does anyone know how it works in the
rails code and/or how to make it work in a plugin? I've had a look at
the rails code, but got lost along the way...

This topic is locked and can not be replied to.