https://github.com/dbackowski/rails_custom_error_pages
Rails engine for custom error pages with bootstrap.
https://github.com/dbackowski/rails_custom_error_pages
bootstrap error-page rails rails-engine ruby ruby-gem
Last synced: 3 months ago
JSON representation
Rails engine for custom error pages with bootstrap.
- Host: GitHub
- URL: https://github.com/dbackowski/rails_custom_error_pages
- Owner: dbackowski
- License: mit
- Created: 2016-07-18T18:27:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T11:15:44.000Z (over 3 years ago)
- Last Synced: 2026-02-20T01:58:48.906Z (3 months ago)
- Topics: bootstrap, error-page, rails, rails-engine, ruby, ruby-gem
- Language: Ruby
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# rails_custom_error_pages [](https://travis-ci.org/dbackowski/rails_custom_error_pages)
Rails engine for custom error pages with bootstrap.

## Installation
Add this line to your application's Gemfile:
gem 'rails_custom_error_pages', '~> 1.0.0'
gem 'bootstrap-sass', '~> 3.3.6'
And then execute:
$ bundle
Or install it yourself as:
gem install rails_custom_error_pages
Remove rails default error pages from public directory:
rm public/404.html
rm public/422.html
rm public/500.html
## Customize
To customize locale:
en:
rails_custom_error_pages:
errors:
show:
title: Error %{status_code}
'404':
description: The page you were looking for doesn't exist.
'422':
description: The change you wanted was rejected.
'500':
description: We're sorry, but something went wrong.
To customize template, run generator:
rails g rails_custom_error_pages:views
This will copy error template to your application views as:
app/views/rails_custom_error_pages/errors/show.html.erb
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## License
Released under the MIT License.