Tag: ruby

  • Saving Calculated Fields in Ruby on Rails 5

    Saving Calculated Fields in Ruby on Rails 5

    In Ruby on Rails, it’s easy to build custom functions to calculate something and then display the result in your views. While this simplicity is nice, it doesn’t come without its drawbacks. Recently, when working on a simple app, I came across a situation where loading a page was taking 0.5 seconds. This may not…