Tutorials

Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
Database Cleaner is a set of gems containing strategies for cleaning your database in Ruby.The original use case was to ensure a clean state during tests. Each strategy is a small amount of code but is code that is usually needed in any ruby app t...






A Rubyist's Introduction to Character Encoding, Unicode and UTF-8
It's very likely that you've seen a Ruby exception like UndefinedConversionError or IncompatibleCharacterEncodings. It's less likely that you've understood what the exception means. This article will help. You'll learn how character encodings work...

How to Perform Concurrent HTTP Requests in Ruby and Rails
Let’s start by describing what’s a blocking I/O. Long story short, any operation that does not directly use the CPU cycles from its thread, but instead delegates the work to external processes is a blocking I/O. Typical examples in the context of ...
