Delete/put links break your Rails app

December 12th, 2009

In Rails you can easily use the link_to helper in your templates to create links to update or destroy actions (using the ), but this ease of use hides a very real problem.

Read the rest of this entry »

Trigger Integrity builds with a cron job

November 27th, 2009

Updated 21 Dec 2009: modified code to work with integrity v. 0.2.9

Integrity is a great little continuous integration server, even if it is a little rough around the edges.

Out of the box Integrity expects that you will trigger all your builds using github’s post receive hooks – although you need to be aware of this bug which means you have to miss the .git of the end of the project’s git repository URI when setting this up.

I however prefer to poll my project’s repositories for changes so that they do not need to be aware of my Integrity server.

Read the rest of this entry »

Cucumber screenshot gem

November 4th, 2009

Cucumber is great for integration testing but when a feature fails for a web application you just get the content of the page spewed out onto the console.

If only you could see a screenshot of the whole web page that produced the failure.

Read the rest of this entry »

Tuning Mail.app / Gmail IMAP integration

September 4th, 2009

When setting up Mail.app on OS X to access your mail in your Gmail (or Google Apps) account via IMAP it is worth tweaking your ‘Mailbox behaviours’ and mailbox mappings to make them work together more smoothly.

However there is conflicting advice on this (from Gmail and Mac OSX Hints for example), so here’s my definitive guide.

Read the rest of this entry »

Ruby docs on OS X with Fluid

June 22nd, 2009

Wouldn’t it be nice to have a neat little an application on your desktop which allows you to search and view ruby docs.

Well it’s just 4 easy steps away.

Read the rest of this entry »