generic rails app cookbook