class Rails::Generators::ControllerGenerator
def add_routes
def add_routes actions.reverse.each do |action| route %{get "#{file_name}/#{action}"} end end
def create_controller_files
def create_controller_files template 'controller.rb', File.join('app/controllers', class_path, "#{file_name}_controller.rb") end