bjorntrondsen / rails_exception_handler

Exception handling for Ruby on Rails
MIT License
107 stars 26 forks source link

dynamic error pages and localization #10

Open solutus opened 10 years ago

solutus commented 10 years ago

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?

bjorntrondsen commented 10 years ago

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.

phlegx commented 9 years ago

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