class ActionView::Helpers::Tags::ActionText
Inherits From
-
class
ActionView::
Helpers:: Tags:: Base -
module
Tags::
Placeholderable
Public instance methods
Source code GitHub
# File actiontext/app/helpers/action_text/tag_helper.rb, line 55
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_text_area_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"))
error_wrapping(html_tag)
end