Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
Getting rid of your old LibreOffice Remove your old LibreOffice: sudo apt-get remove libreoffice* You probably also want to...
By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...
Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...
edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...
Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...
So you erased a whole day's work? There is hope! The linked article tells how to recover from an...
Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...
Automagically makes XHR requests work cross-domain by tunneling all communications through an IFRAME on your page.
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...
Skype has been updated to 4.3 on Linux. This fixes group chat issues with non-linux clients.
SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
Provides a value container that guarantees atomic updates to this value in a multi-threaded Ruby program. Originally linked to...
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...
Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...