Class: Koi::Helpers::AttributeTypes::RichTextType
- Defined in:
- lib/generators/koi/helpers/attribute_types.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#collection_attribute, #index_row, #initialize
Constructor Details
This class inherits a constructor from Koi::Helpers::AttributeTypes::Base
Instance Method Details
#govuk_input ⇒ Object
117 118 119 |
# File 'lib/generators/koi/helpers/attribute_types.rb', line 117 def govuk_input %(<%= form.govuk_rich_text_area :#{attribute.name} %>) end |
#show_row ⇒ Object
121 122 123 |
# File 'lib/generators/koi/helpers/attribute_types.rb', line 121 def show_row %(<% row.rich_text :#{attribute.name} %>) end |