RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Let there be docs! Generating an OpenAPI schema across the Rails stack

In API development, documentation is often something tackled once the code’s written and tested. There’s a growing movement advocating for a doc-first approach, where specifications come before a single line of code. So, when might an implementation-first approach be preferred? [more inside]

Interesting! I like the way you generate the schemas. You forgot to include Oas…

Kreds v1 is out

It provides a safer, cleaner interface for accessing Rails credentials with strict error handling, optional fallback to environment variables, and support for environment-specific structures. [more inside]

RSpec book update: Testing in isolation with mocks (and friends)

I just shipped a new chapter for the current edition of Everyday Rails Testing with RSpec. In this release, I’ve totally replaced my introduction to testing in isolation with mocks (and stubs, and fakes, and spies, and doubles, oh my). My beliefs on when and how to mock have changed a lot since the last major release of the book, and this updated chapter reflect my newer opinions. I hope you find it useful!

Running ruby on jupyter notebooks

You’ve maybe heard about Jupyter notebooks - an awesome web application which allows you to run python code in a browser. There are another similar project - Livebook which allow running Elixir code in browser. [more inside]

Demystifying Rails Generators: What I Wish I Knew

Rails generators, and their underlying Thor integration, can be surprisingly opaque — even for experienced developers. I recently found myself deep in this rabbit hole, frustrated by the lack of clear documentation and practical guidance. So I wrote the article I wish I’d found back then. If you’ve ever struggled to understand or customize Rails generators, this guide breaks it down in a way that’s approachable and practical. [more inside]

Migrate from importmap to esbuild

Importmap is a great tool, but unfortunately it isn’t a silver bullet for everything. I decided to move away from importmap to esbuild for one of my projects because of it was so tricky to setup it to use with flowbite. [more inside]

Kamal Deployment: The Newest Form of Self-Torture

Struggling with Kamal 2 for Rails deployments? This detailed guide walks through common pitfalls and their solutions when setting up Kamal with Rails 8, Solid Stack, and multi-environment configurations. Learn practical workarounds for Docker permissions, credentials management, and Shrine file uploads that will save you days of frustration. [more inside]

Loading older posts