Skip to content

Commit

Permalink
Add doc for FormBuilder#rich_text_area
Browse files Browse the repository at this point in the history
Using the style of other ActionView::Helpers::FormBuilder methods that
delegate to another method.
  • Loading branch information
skipkayhil committed May 26, 2023
1 parent c49bd00 commit c7a8125
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actiontext/app/helpers/action_text/tag_helper.rb
Original file line number Diff line number Diff line change
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 c7a8125

Please sign in to comment.