Skip to content

Commit

Permalink
Merge pull request #48312 from skipkayhil/hm-document-at-rich-text
Browse files Browse the repository at this point in the history
Add doc for FormBuilder#rich_text_area [ci skip]
  • Loading branch information
guilleiguaran committed May 28, 2023
2 parents d6004a3 + c7a8125 commit e9ea600
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actiontext/app/helpers/action_text/tag_helper.rb
Expand Up @@ -83,6 +83,13 @@ def rich_text_area(object_name, method, options = {})
end

class FormBuilder
# Wraps ActionView::Helpers::FormHelper#rich_text_area for form builders:
#
# <%= form_with model: @message do |f| %>
# <%= f.rich_text_area :content %>
# <% end %>
#
# Please refer to the documentation of the base helper for details.
def rich_text_area(method, options = {})
@template.rich_text_area(@object_name, method, objectify_options(options))
end
Expand Down

0 comments on commit e9ea600

Please sign in to comment.