If you open a pop-up window [1] in your Selenium tests and you want to close it, you can...
See attached link for a way to extract the conditions of a named scope in Rails 2.3.
Rails 2.3.16+ on Ruby 1.9 causes warnings like this: .../gems/activesupport-2.3.17/lib/active_support/core_ext/string/output_safety.rb:22: warning: regexp match /.../n against to UTF-8 string...
So you have a method returning a regular expression but one case that should not yield a matching Regexp object...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...
This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and are not...
Counters are an awesome CSS feature you didn't know about. It is supported in all browsers and IE8+.
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.
In our continued quest to extract proven code snippets from makandropedia into tested and upgradable gems, we have released Edge...
The Edge Rider gem gives your relations a method #traverse_association which returns a new relation by "pivoting" around a...
TLDR: Ruby class variables (@@foo) are dangerous in many ways. You should avoid them at all cost. See bottom of...
When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's...
There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...
This is awesome. Only ran smoothly in Chrome. Is a slideshow in Firefox.
This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...
Since I'm a software architect and a web developer, I get often approached by people with their new ideas...
A tooltip library that does not use Javascript. Works in IE9+. This library (or the technique used by it) could...
Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...