Heres the one-minute walkthrough on how to create custom error pages in Ruby on Rails.

Let’s go!

  • Delete the ones that come with Rails in public/STATUS_CODE.html
  • Add the following to config/application.rb which changes the setting s to allow you to make your custom error pages
config.exceptions_app = self.routes
  • Create a controller with actions for your error pages
rails g controller errors internal_server_error not_found
  • Add routes for those pages

Add your views such as app/views/errors/internal_server_error.html.erb and you are done. Thanks for reading!

So I was recently reviewing a pull request in a Rails app that I have never worked in. This was an interesting review and I wanted to share. To be clear, the existing code worked fine and my refactor here is nit-picky. But this is a good case of how…

Development Environment Framework

Continuing From learning about smart contracts, the next step is learning to work with a development environment framework. If your smart contracts are your materials that becomes your end product, you can think of your development environment as your work bench, tools and instructions on how to use those tools.

As a programmer, we interact with many different technologies on a daily basis. The one I want to talk about today is git version control. I will assume you know what git is and have some experience with it. …

If you do not know I have been working on about one problem a day on Codewars. As I have worked my way up the rankings, I realized these problems are not always the usual logic coding problems. Some require a very specific solution. To get the best solution for…

Jason Gong

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store