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
1
rails_error_pages 1.0.5
How to use :
Simply add it to your Gemfile and bundle install.
1
gem 'rails_error_pages'
Next step is to use a generator, to add auto generated code into our application using
1
rails g rails_error_pages
That’s it! run your application and try with a false URL.