Sha256: 43f5dbf77623fe276a626b3f8c63e2385768b1b7d2a6909d8484bb930098bf22

Contents?: true

Size: 622 Bytes

Versions: 26

Compression:

Stored size: 622 Bytes

Contents

## Public errors customization (404,422,500...)

Today I got a task to customize errors, and found 
[one useful article](https://wearestac.com/blog/dynamic-error-pages-in-rails),
but with `Onotole` it is much easyer. You need a very little part of code.
In default pack you actually have `Hight voltage` gem, witch will make all work.
Add in your `config/application.rb` this line:
```
module MyAwesome
  class Application < Rails::Application
    ...
    config.exceptions_app = self.routes
  end
end
```
And now `Hight voltage` is in play! Make in `app/views/pages/404.html.erb` (or 
any other template) and here it is.

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
onotole-2.0.2 goodies/custom_404_and_others_in_1_minute.md
onotole-2.0.1 goodies/custom_404_and_others_in_1_minute.md
onotole-2.0.0 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.11 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.10 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.9 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.8 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.7 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.6 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.5 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.4 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.3 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.2 goodies/custom_404_and_others_in_1_minute.md
onotole-1.2.1 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.21 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.20 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.19 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.18 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.17 goodies/custom_404_and_others_in_1_minute.md
onotole-1.1.16 goodies/custom_404_and_others_in_1_minute.md