yes@petr.codes
Blog Resume
Blog Resume

Rails

Flexible API Versioning with Rails

9 Feb 2025

rails, api, versioning

A well-defined API versioning strategy is crucial for any API expected to evolve. Let's explore the most common API versioning strategies and develop a flexible one in Rails.

Ruby

Gem Credentials Management with Gemstash

13 Nov 2023

ruby, gems, gemstash

How can we efficiently manage gem credentials across the team?

Rails

Business logic in Rails with operators

19 Oct 2021

ruby, rails, business logic, poro

Having a thousand lines long controllers and/or models is not the right way to have sustainable applications or developers’ sanity. Let’s look at this straightforward solution for business logic in the Rails app.

Rails

Fun with Rails Enums and PORO

5 Oct 2021

ruby, rails, enum, poro

I really like enums. They can be really powerful if they are used wisely. Let’s see what we can do with them in a multilingual Rails app with a little help from PORO (Plain Old Ruby Object).

Rails

Multi-Factor Authentication for Rails with WebAuthn and Devise

27 Sep 2021

ruby, rails, devise, webauthn, 2fa, mfa, security keys

There are several ways to add multi-factor authentication (MFA) for safer user authentication. Let’s look at how to add a modern MFA approach to a Rails application with WebAuthn.

Rails, Modern Rails flash messages

Modern Rails flash messages (part 3): Refactoring with Turbo

7 Jul 2021

rails, ruby, stimulus, turbo

I can not believe it has been almost 10 months since I wrote the first part. Several things have happened since then. Like Turbo…

Showing 1 to 6 of 10 posts

Next
Mastodon LinkedIn GitHub

© 2025 Petr Hlavicka.
Built with Tailwind CSS, Tail-kit, Bridgetown and