Knitting pattern generator ported to Rails. Now with magic!