Published on
1 min read

A Gem for generating Custom error pages in Rails Application

Authors

Writing a Ruby Gem was a long-time wish of mine, but I couldn't find an idea for a gem. Finally, I got one for which I didn't find an existing gem: a generator that automatically generates custom code for handling 404 and 500 errors and pages in Rails applications (thanks to Sreekanth for noting there was no gem for this task).

Here it is: rails_error_pages 1.0.5

How to use:

Simply add it to your Gemfile and bundle install.

gem 'rails_error_pages'

The next step is to use the generator to add auto-generated code to your application:

rails g rails_error_pages

That's it! Run your application and try with a false URL.

TwitterLinkedInHacker News