Refactoring views with Ruby on Rails’ ActiveSupport helpers

Scott Matthewman
6 min readMar 8, 2018
You have some great support when running on Rails. Original photo by Rucksack Magazine on Unsplash

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…

--

--

Scott Matthewman

Scott is a software developer during the day and a theatre critic & director of an evening. Which is the worst superhero identity ever.