From this tutorial: http://ididitmyway.herokuapp.com/past/2010/9/21/restful_rabbits/