#!/usr/local/bin/ruby require File.dirname(__FILE__) + '/../config/environments/production' def create_controller_class(controller_class_name, controller_file_name, show_actions) File.open("app/controllers/" + controller_file_name + "_controller.rb", "w", 0777) do |controller_file| controller_file.write < #{controller_class_name}##{action}

#{controller_class_name}##{action}

Find me in app/views/#{controller_file_name}/#{action}.rhtml

EOF end } end def create_test_class(controller_class_name, controller_file_name) File.open("test/functional/" + controller_file_name + "_controller_test.rb", "w", 0777) do |test_file| test_file.write <