github.com

Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...

Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...

makandra dev
semaphoreci.com

In this article, we’ll look at what side effects are, why they are problematic despite being necessary, and how...

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...

speakerdeck.com

Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).

Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

tenderlovemaking.com

You can define methods using def or define_method. In the real world, there is no performance difference.

This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those...

makandra dev
dev.mensfeld.pl

Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...

You can download .gem files using gem fetch: gem fetch activesupport consul This will produce files like active-support-5.0.0.gem and consul-0.12.1.gem...

mitrev.net

As announced before, Ruby has introduced a safe navigation operator with version 2.3.0. receiver&.method prevents NoMethodErrors by intercepting method...

blog.blockscore.com

#dig lets you easily traverse nested hashes, arrays, or even a mix of them. It returns nil if any intermediate...

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

PostgreSQL uses the C library's locale facilities for sorting strings: First, all the letters are compared, ignoring spaces and...

Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...

As your Rails project grows, you will accumulate a number of small patches. These will usually fix a bug in...

blog.skylight.io

Helix allows you to implement performance-critical code of your Ruby app in Rust, without requiring glue code to bridge...

When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...