Skip to content

Phusion Passenger Support #87

@dwood-somniainc

Description

@dwood-somniainc

I'm having a weird issue where its forcing a redirect to "500 Internal Server Error" default page, instead of the exception_handler show action for the not found error. The views work in development, but they don't work in production. The gem is not forcing a redirect for some odd reason.

I placed the exception config in all environment.rb files to see if that was the problem.

config.exception_handler = {
   dev: nil,
   email: "email@mail.com",
   exceptions: { :all => { layout: "exception"},
                        400 => { layout: "exception"},
                        500 => { layout: "exception"}
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions