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.

Understanding Closures in Ruby 🔒

Closures are one of Ruby’s most powerful yet often misunderstood features. They allow us to write cleaner, more flexible, and highly reusable code. If you’ve ever used blocks, procs, or lambdas in Ruby, you’ve already interacted with closures — but do you really understand how they work? [more inside]

Adding Structured Data to a Rails application

When it comes to SEO, content is king. However, content is not exclusively what can be seen or read, metadata is also part of the content, and it helps us better communicate what the content is about and what entities are part of it. Learn how to add structured data, a.k.a. schema markup, to a Rails application. [more inside]

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!

Loading older posts