Refactoring views with Ruby on Rails’ ActiveSupport helpers
6 min readMar 8, 2018
Ruby on Rails (strictly speaking, the ActiveSupport
gem which is installed as a prerequisite for all Rails projects, but which can be installed and used independently of Rails) has some pretty useful features built in.
One such feature is something that this week helped me rip out some tortuous code that was introducing a subtle HTML rendering bug. It’s…