Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc for FormBuilder#rich_text_area [ci skip] #48312

Merged
merged 1 commit into from
May 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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