#!/usr/bin/env ruby def generate_controller(name, file) f = File.open(file, 'w') f << <