Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...
For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
If you can now longer hear or record sounds after upgrading Ubuntu, you probably need to re-tell Ubuntu which...
In Rails 2, when calling instance_eval or instance_exec on a scope, the scope will fetch its records from...
Unlike in Gnome, there is no graphical tool to set a mouse cursor in Xfce. Run this on a terminal...
So you are debugging like a boss and lost track of where you actually are in your code? No problem...
The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...
A technique to vastly reduce the number of join model records that need to be stored in the database.
This is super stupid: In the Thunar file manager, select the file Go to File / Properties / Open With (WTF!)
While you can set your own font in your terminal or other tools, it will not change the default "Monospace...
When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...
Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...
Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...
Holly Schinsky from Adobe shows some of Bootstrap's capabilities. The combination of explanation, screenshots and source code makes it...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them: