So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...
Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
Knowing when to refactor Just feeling like refactoring is not a good reason to do it. Make an educated decision...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...
If you want to find the commits that touched a specific text in a file, use git log -S 'text...
Using the -U parameter you can change how many lines are shown above and below a changed section.
Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...
Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...
Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need...
Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.
When you are calling Bundler from your shell scripts, you might find it useful that a failed bundle call returns...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...