This project is archived and is in readonly mode.

#3420 ✓stale
Rick Martinez

ShowExceptions fails to find layout due to bundler

Reported by Rick Martinez | October 24th, 2009 @ 10:55 PM

ActionDispatch::ShowExceptions fails to find the templates for rescuing in public when using Bundler to bundle all your gems.

The reason for this is that ActionDispatch::ShowExceptions::RESCUES_TEMPLATE_PATH is being set to File.join(File.dirname(__FILE__), 'templates') which resolves to RAILS_ROOT/vendor/gems/gems/actionpack/lib/action_dispatch/middleware/templates

Notice that "actionpack" is missing the version 3.0.pre which is part of the path. The correct path should be: RAILS_ROOT/vendor/gems/gems/actionpack-3.0.pre/lib/action_dispatch/middleware/templates

Anyone else having the same issue?

Comments and changes to this ticket

  • Rick Martinez

    Rick Martinez October 25th, 2009 @ 09:42 AM

    I've found why it's getting that path, it's ActionMailer not being happy with the bundled gem arrangement somehow. Here's the unresolved path:


    Looks like there's a dependency it shouldn't be loading itself. When I turn off the framework, it works just fine.

  • Rick Martinez

    Rick Martinez October 25th, 2009 @ 04:23 PM

    The problem comes and goes when I run gem bundle. It looks like it has something to do with the order of the gems in the vendor/gems/environment.rb file. I think it's a bug with ActionMailer itself though, instead of anything having to do with bundler.

  • Rohit Arondekar

    Rohit Arondekar October 6th, 2010 @ 06:37 AM

    • State changed from “new” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

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=""></a>

People watching this ticket