Class: Tags::ActionText

Inherits:
Base
  • Object
show all
Includes:
Placeholderable
Defined in:
app/helpers/action_text/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



56
57
58
59
60
61
62
# File 'app/helpers/action_text/tag_helper.rb', line 56

def render
  options = @options.stringify_keys
  add_default_name_and_id(options)
  options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) if object
  html_tag = @template_object.rich_textarea_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"))
  error_wrapping(html_tag)
end