class Rails::Generators::ControllerGenerator
def add_routes
def add_routes return if options[:skip_routes] return if actions.empty? routing_code = actions.map { |action| "get '#{file_name}/#{action}'" }.join("\n") route routing_code, namespace: regular_class_path end