Tutorials
How I built a native iOS app with Rails and one YAML file
Every screen you see in Beervana is a Rails view, served over HTTPS, rendered in a WKWebView. There is no separate iOS codebase. There is no API. The “app” is my existing Rails app (same controllers, same ERB templates, same Turbo frames) loaded i...
Migrating a Rails App From Heroku to Railway - FastRuby.io | Rails Upgrade Service
How I migrated a multi-tenant Rails app from Heroku to Railway in about an hour, including the part where I accidentally broke the database.Last weekend I migrated my Doctor’s App from Heroku to Railway.
It’s a multi-tenant Rails app where each h...
Different Approaches to Debugging Query Performance in Rails | Saeloun Blog
Slow database queries can significantly impact the user experience of any Rails application. Identifying and fixing these performance bottlenecks requires a systematic approach and the right set of tools.
In this post, we will explore various app...
Fixtures on Purpose: From Accident to Artifact · blowmage
I’ve been writing Rails tests for a long time. I’ve argued about assertion styles and test structure, mocking strategies and naming conventions, and whether def test_ or test "..." is the One True Way. (It’s def test_. Obviously.)
But the thing t...
Handle Uncountable Words in Rails Inflections - Andy Croll
Use inflect.uncountable to stop Rails pluralising words like staff, metadata, and feedback.Some English words don’t have a separate plural form. “Staff” is staff, “metadata” is metadata, “feedback” is feedback. Rails doesn’t always know this—it wi...