Class: Tags::ActionText
- Inherits:
-
Base
- Object
- Base
- Tags::ActionText
- Includes:
- Placeholderable
- Defined in:
- app/helpers/action_text/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#render(&block) ⇒ Object
63 64 65 66 67 68 69 |
# File 'app/helpers/action_text/tag_helper.rb', line 63 def render(&block) = .stringify_keys add_default_name_and_field() ["input"] ||= dom_id(object, [["id"], :trix_input].compact.join("_")) if object html_tag = @template_object.rich_textarea_tag(.delete("name"), .fetch("value") { value }, .except("value"), &block) error_wrapping(html_tag) end |