Tutorials

Why Can't We Just... Send an HTML Email - Julik Tarkhanov
Now, we computer-savvy household members know darn well that HTML email is, on the list of terrible IT things we have to help others with, right below the “can we get this printer to work?”. It can get… challenging. And yet, given that I have done...




How to customize Rails I18n key suffixes like?`_md`?for Markdown | Island94.org
If you’ve had reason to use internationalization in Rails on Rails, you’ve probably used a nifty feature of it:
Keys with a _html suffix… are marked as HTML safe. When you use them in views the HTML will not be escaped.
Authoring HTML within tra...


The 'then' Ruby Keyword - What is it? – Ben Koshy – Rails, Tekla Open API, AutoDesk .NET
Have you heard of the then method? I’d never heard of it, till now:
The best way of learning is by implementing it in some code base you are reading - preferably your own (at least that’s how I learn and experiment). Otherwise what tends to happen...

Hotwire components that refresh themselves | Boring Rails: Skip the bullshit and ship fast
Earlier this year, I made a quick tweet about a pattern that I think makes working with Hotwire apps much better.
When you need to make a bit of UI that runs some code in the background, you can use turbo_streams to ‘refresh’ the front-end when t...

Rails 8 adds ability to use multiple rate limits per controller | Prateek Codes - Learn Building Scalable Backend Systems
Rails 7.2 introduced built-in rate limiting to Action Controller. However, you could only set one rate limit per controller, which wasn’t flexible enough for real-world applications. Rails 8 solves this by allowing multiple rate limits using the n...