How to Modify & Customize ActionText HTML Output in Rails
#453 · Pro
Ever needed to modify the HTML that ActionText renders? We can override the ActionText::Content class to modify the way HTML formatting works to customize the output. For example, we can add rel="noopener nofollow" to any anchor tags in the content.
Concept Application: Assert Difference Deep Dive
In this video, we will explore how the concepts we looked at in "Flattening Scopes in Ruby" are used in Rails by taking a look at the assert_difference method. We will walk through how the method works while taking note of where the concepts are applied.
Code Review: Refactoring the Receipts gem for Composability
#436 · Pro
Designing code for composability allows you to make code more testable, flexible, and easier to adapt in the long term. We'll look at how I recently refactored the Receipts gem so that you can easily customize receipts and still use built-in components.