rails_exception_handler icon indicating copy to clipboard operation
rails_exception_handler copied to clipboard

dynamic error pages and localization

Open solutus opened this issue 10 years ago • 2 comments

Hello Bjorn, I meet some problems with ErrorResponseController.

  1. Localization. Rails maintains public/[errnum].[language].html format. But gem opens public/[errnum].html only.
  2. Dynamic processing of errors. Erb responses and Rails I18 localizations may be used in error pages. http://wearestac.com/blog/dynamic-error-pages-in-rails But current implementation does not allow it.

Currently, I am trying to figure out how to resolve this problems in scope of gem. What do you think about it?

solutus avatar Mar 11 '14 13:03 solutus

Hello You're right, support for dynamic error page content and localization doesnt exist. If you wanna add it yourself you can fork, implement and send a pull request. I dont mind adding it to a future release myself, but I dont have much free time right now so that could take a few weeks or even months.

bjorntrondsen avatar Mar 13 '14 15:03 bjorntrondsen

Hi! Please see my pull request and if you like it merge it to the master branch. Thx

phlegx avatar Nov 17 '15 19:11 phlegx