If your Carrierwave uploader dynamically generates the filename (e.g. by incorporating a user's name), you must call model.save! after...
TL;DR: Update the 'net-ssh' gem by adding to your Gemfile: gem 'net-ssh', '=2.9.1' Now run bundle update...
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...
You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...
When running tests via parallel_tests, you may encounter an error: cannot load such file -- parallel_tests/gherkin/runtime_logger Error creating formatter...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
If you are fine with the default console diff most of the time but only sometimes want to use an...
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.
You might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that...
Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...
To get your F12 key back for other shortcuts, stop Tilda: killall tilda To prevent Tilda from starting on boot...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Similar to our snippet that runs all Cucumber features matching a given string, the following will run all modified or...
Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation...
Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...
You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Things to check first Do you deliver fonts in a format that the target IE version understands? Did you double...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...