Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...
Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.
These are Chrome plugins that proved useful at makandra. Each is the best-in-class. Dimensions Auto-measure distances by...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
Similar to our snippet that runs all Cucumber features matching a given string, the following will run all modified or...
You know those helper methods that just render some HTML but look weird because of content_tags all over the...
In this article, we’ll look at what side effects are, why they are problematic despite being necessary, and how...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)
Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
You can define methods using def or define_method. In the real world, there is no performance difference.
So you want to use object-fit, but you also need to support Internet Explorer. One option is to use...
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...
This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...