So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
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...
Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...
Plot graphs in Ruby WebGraphviz renders in your browser via JavaScript (to store the rendered graph, extract the SVG using...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"
You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)
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...
If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration...
When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...
There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can...
A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
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...
When a directory has more than a few thousand entries, ls will start taking really long to list its content...
If you are fine with the default console diff most of the time but only sometimes want to use an...