DirectorComponentBlueprint
InfoGenerateCreated ByPackages
The code defines a Ruby class named `Director` that inherits from `ApplicationComponent`. This class has a single method, `template`, which generates a `div` HTML element with a CSS class of `director` and the text content "Director component content".
# frozen_string_literal: true
class Director < ApplicationComponent
def template
div(class: "director") { "Director component content" }
end
end
Try a prompt
Original Prompt:
"generate a director"