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.

FactoryBot Tips

FactoryBot Tips article to provide a few guidelines I think about when creating factories to avoid test data from becoming messy and fragile.

rspec-benchmark adds objects and memory expectation

The latest rspec-benchmark adds a flexible expectation for testing objects and memory usage. It also adds the ability to configure global options such as the number of samples for perform_under and computational complexity matchers. Happy safe hacking!

Introduction to Rails patterns - free book

I created a free book for you, it’s called “Introduction to Rails patterns” and it covers over 50 pages of useful refactoring tips. You can get it here

Validate and Fix Ruby on Rails ActiveRecord PostgreSQL Data Integrity

Most Ruby developers work with Rails and Active Record for PostgreSQL database interactions. It provides a ton of magic and is simple to start with. Data integrity problems start creeping up once the code base and database structure gets older. In this blog post, I will describe a couple of techniques for ensuring data integrity and validation in Ruby on Rails web apps. [more inside]

Loading older posts