Remote Ruby cover image

Remote Ruby

Sorry For Slandering Yet Another Gem

Sep 8, 2023
In this episode, the hosts talk about energy drink flavors and disagreements with a absent colleague. They cover topics like CMS options, front-end development, and Tailwind CSS customization. They introduce a gem called 'Counter' for attribute tracking. They also discuss email delivery performance issues and ice cream preferences, ending with a bet about whether Chris will listen to the episode.
29:05

Podcast summary created with Snipd AI

Quick takeaways

  • Email substitution can be used to customize links in notifications based on recipient, with PreMailer being a useful tool for generating inline styles and text parts from HTML emails.
  • The CounterWise gem allows for efficient attribute tracking and custom counters in mailers, simplifying the process of adding and using counters.

Deep dives

Using Email Substitution for Custom Links in Notifications

In an effort to improve email delivery performance, the podcast host discusses using email substitution for custom links in notifications. They share an example where they need different links based on the recipient of the email. They mention the use of a mustache syntax to set the host in the URL, but initially faced issues with the link getting escaped. After diving into Action Mailer and the Mail gem, they realized the solution lied with PreMailer. Although they had to resort to using a regular expression to skip PreMailer, they found success in using it to generate inline styles and create text parts from HTML emails.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode