pulling out the guts of complex rails apps