The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Setup Rails 7.2 and Docker Compose for Capybara/Selenium/RSpec and more: Step-by-Step
Set up Rails 7.2 with Docker Compose! Learn to configure Capybara, Selenium and RSpec for testing, PostgreSQL and Sidekiq. By the end, you’ll have a complete Rails Dev Environment running in Docker where you can see tests running in a browser inside the docker container! [more inside]
Measuring the Impact of Feature Flags in Ruby on Rails with AppSignal
We’ll set up feature flags in a Solidus storefront using Flipper and AppSignal’s custom metrics: https://blog.appsignal.com/2024/10/02/measuring-the-impact-of-feature-flags-in-ruby-on-rails-with-appsignal.html
Kamal Handbook, 2nd edition is in beta
Kamal Handbook got updated for Kamal 2. Hooray! :)
A practical guide to web scraping with Ruby
Happy to see HTTParty make an appearance in this new Ruby web scraping article from Jeffery Morhous!
Git Improved 0.2.0 released
Git Improved is a wrapper command for Git. It is more intuitive and easier to understand than Git commands. For example: [more inside]
Leveraging Turbo 8: Best Additions to Implement in Rails 8 Projects
This article will explore Turbo 8’s powerful features and a little bit of code. I swear, you will be surprised by how little extra code is needed to implement all of this! [more inside]
Migrating from Devise to Rails Auth before you can say "Rails World keynote"
Miha already migrated his project from Devise to the brand new Rails Authentication released with Rails 8 beta. He actually did it all by Saturday, in just 2 days, including the guest post to publish on my blog. I was just slow on my part but it’s here now, with all the details of the migration: Migrating from Devise to Rails Auth before you can say “Rails World keynote”
Upgrading and Deploying with Kamal 2.0 Experience
Upgraded Drifting Ruby to deploy with Kamal 2.0. It did have some hiccups that caused a little bit of down time. You can read about what happened here https://blog.driftingruby.com/kamal-2-0-issue-with-aws-alb/ . I talk about the upgrade process from 1.9 to 2.0 as well.
Organize your Rails codebase with aaa engines
Less clutter, more joy: one mini-app per feature with aaa engines. 💚 [more inside]
Introducing Check-ins for Scheduled Job and Continuous Process Monitoring
See how AppSignal Check-ins make it easy to monitor your Ruby app’s scheduled jobs and continuous processes. [more inside]
Scaling Rails: setup multiple databases with Postgres Logical Replication
It’s easy but has some gotchas due to Rails metadata tables creating conflicts while trying to sync data across databases. [more inside]
Announcing Hanami 2.2.0.beta2
Rounding out our database layer: MySQL, powerful multi-database support, plus full contracts in actions. [more inside]
Terminal–based game in 150 lines
I wrote a terminal dungeon crawler game with pure Ruby in less than 150 lines. Here’s a guide
Gilded Rose Kata and the value of explicit requirements in the code
Doing the Gilded Rose Kata refactoring while keeping the requirements wording very explicit in the Ruby code: Gilded Rose Kata and the value of explicit requirements in the code. An exercise in Ruby expressiveness as a benefit for maintenance.
Rails on Docker: Build Secrets for Yarn with 1Password
A quick tutorial on using Docker Build secrets for authentication when using private yarn/npm packages (and gems) in GitHub, and using the 1Password to manage tokens / keys.
Kamal new proxy
Here’s a post on Kamal Proxy replacing Traefik. What, why, how.