See our new comprehensive guide for upgrading every Rails 2 version ever.

makandra dev

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11...

The code below shows a method #validate which uses Nokogiri to validate an XML document against an XSD schema. It...

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

To improve your chances to get proper error messages, you can try ^ to start cucumber with the -b option, so...

When you need to bulk rename files you can not call "mv *.foo *.bar" to change the extension of all...

Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article...

In order to bring up a textual description of a Capistrano task you can say cap -e taskname ... where taskname...

If you find yourself working in the Adobe Flash IDE you're already doing it wrong, but maybe the hour...

This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...

cyberciti.biz

To list the name and version of your Linux distribution, type the following: cat /etc/*-release

When you use the send_file method to send a local file to the browser, you can save resources on...

When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

widgetsandshit.com

Some people, when confronted with a problem, think "I know, I'll use a queue." Now they have an unbounded...

getfirebug.com

You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.

babushka.me

The idea is this: you take a job that you'd rather not do manually, and describe it to babushka...

github.com

jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...

A check if two date or time ranges A and B overlap needs to cover a lot of cases:

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

Sometimes it is useful to define a named scope by implementing a static method with the scope's name on...

Given those modules: module A def foo; end def bar; end end module B end When you want to call...

makandra dev

Given group size If you would like to split a Ruby array into pairs of two, you can use the...

This might be due to AppArmor denying the MySQL server access to most of the filesystem. You can instead use...