Topic: erb
-
Rendering HTML tables by column in Rails ERB views
When displaying a lot of tabular data as we do at Wrapbook, it can become difficult to manage the individual columns that must render within the table. This can be because an addition or removal needs to be made, or because the rendering is driven by a feature flag.
-
Using feature flags to rewrite every view in our Rails app
Feature flags are an effective method for developing and introducing large changes to an existing codebase without large interruptions to the engineering team. We have over 400 ERB files (views & partials) in our Rails app, and we re-wrote all of them over the course of 9 months using feature flags.