rails_exception_handler
rails_exception_handler copied to clipboard
dynamic error pages and localization
Hello Bjorn, I meet some problems with ErrorResponseController.
- Localization. Rails maintains public/[errnum].[language].html format. But gem opens public/[errnum].html only.
- 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?
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.
Hi! Please see my pull request and if you like it merge it to the master branch. Thx