instance method
rich_text_area
Ruby on Rails 7.1.6
Since v6.0.6Signature
rich_text_area(method, options = {})
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.
Parameters
-
methodreq -
optionsopt = {}
Source
# File actiontext/app/helpers/action_text/tag_helper.rb, line 89
def rich_text_area(method, options = {})
@template.rich_text_area(@object_name, method, objectify_options(options))
end
Defined in actiontext/app/helpers/action_text/tag_helper.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder