Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...

teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.

After you configured your ODBC describe in Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7...

I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...

makandra dev

When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...

When you are calling a method that may raise an exception that you don't care about, you might think...

Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...

Let's say you need to revert a migration that happened a while back. You'd create a new migration...

When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...

will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...

Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...

In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...

Don't you just hate to write Cucumber path helpers to be able to say this?

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...

Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...

turnjs.com

turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...