Writing a Ruby Gem was my long time wish, but i couldn’t find an idea to make a gem. Finally got it, for which i didn’t find a gem, a generator which will automatically generate a custom code for handling 404 and 500 errors and pages in rails application (Thanks to Sreekanth for noting there is no gem for this taks). Here it is
How to use :
Simply add it to your Gemfile and bundle install.
Next step is to use a generator, to add auto generated code into our application using
rails g rails_error_pages
That’s it! run your application and try with a false URL.